add deploy workflow job (#280)

Fixes #279
This commit is contained in:
classabbyamp 2020-10-11 14:42:09 -04:00 committed by GitHub
parent 27863ae6bf
commit ff9d46f379
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 17 deletions

View File

@ -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 }}"}'