fix(ci): wait for Docker build before updating Portainer

This commit is contained in:
Luke Tainton (ltainton) 2023-11-27 13:52:28 +00:00 committed by Luke Tainton
parent 926e00a85b
commit e838b0fa9a

View File

@ -23,7 +23,7 @@ jobs:
tag: ${{ steps.tag_version.outputs.new_tag }} tag: ${{ steps.tag_version.outputs.new_tag }}
name: ${{ steps.tag_version.outputs.new_tag }} name: ${{ steps.tag_version.outputs.new_tag }}
body: ${{ steps.tag_version.outputs.changelog }} body: ${{ steps.tag_version.outputs.changelog }}
publish: publish:
name: GitHub Container Registry name: GitHub Container Registry
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -42,10 +42,11 @@ jobs:
deploy: deploy:
name: Update Portainer Deployment name: Update Portainer Deployment
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: publish
steps: steps:
- uses: fjogeleit/http-request-action@v1 - uses: fjogeleit/http-request-action@v1
with: with:
url: ${{ secrets.PORTAINER_WEBHOOK_URL }} url: ${{ secrets.PORTAINER_WEBHOOK_URL }}
method: POST method: POST
timeout: 30000 timeout: 30000
preventFailureOnNoResponse: 'true' preventFailureOnNoResponse: "true"