From ff9d46f3794e6c5ce6c8bef225d1bfa0d20e67fa Mon Sep 17 00:00:00 2001 From: classabbyamp <5366828+classabbyamp@users.noreply.github.com> Date: Sun, 11 Oct 2020 14:42:09 -0400 Subject: [PATCH] add deploy workflow job (#280) Fixes #279 --- .github/workflows/docker.yml | 30 +++++++++++++----------------- 1 file changed, 13 insertions(+), 17 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 0e6e40d..2b030bb 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -57,20 +57,16 @@ jobs: - name: Push images to registry run: docker push ${{ steps.tag_image.outputs.image_id }} -# deploy: -# name: Deploy new images -# runs-on: ubuntu-20.04 -# needs: docker -# steps: -# - name: Deploy official images -# id: deploy_images -# uses: satak/webrequest-action@v1.2.3 -# with: -# url: ${{ secrets.DEPLOY_URL }} -# method: POST -# headers: '{"Authentication": "Token ${{ secrets.DEPLOY_TOKEN }}"}' -# payload: | -# '{ -# "repository": "${{ github.repository }}", -# "version": "${{ jobs.docker.steps.tag_image.outputs.version }}" -# }' + deploy: + name: Deploy new images + runs-on: ubuntu-20.04 + needs: docker + steps: + - name: Deploy official images + id: deploy_images + uses: satak/webrequest-action@v1 + with: + url: ${{ secrets.DEPLOY_URL }} + method: POST + headers: '{"Authentication": "Token ${{ secrets.DEPLOY_TOKEN }}"}' + payload: '{"version": "${{ jobs.docker.steps.tag_image.outputs.version }}"}'