Skip to content

Commit

Permalink
Fix Provider push and Flux redeploy in publish (#1153)
Browse files Browse the repository at this point in the history
* Push to latest tag as part of docker/build-push-action@v5 step

* Make sure @prosopo/flux is installed for redeploying flux instances
  • Loading branch information
forgetso authored Apr 17, 2024
1 parent 84041f7 commit a4c4739
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,8 @@ jobs:
PROSOPO_ZELCORE_PUBLIC_KEY: ${{ secrets.PROSOPO_ZELCORE_PUBLIC_KEY }}
run: |
if [[ "${{ steps.publish_docker_js_server.outcome }}" == 'success' ]]; then
echo "Installing @prosopo/flux..."
npm i -g @prosopo/flux
echo "Soft redeploying flux docker js_server."
npx flux redeploy --app ProcaptchaJavascriptServer
else
Expand Down Expand Up @@ -574,14 +576,7 @@ jobs:
file: ${{github.workspace}}/docker/images/provider.dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: prosopo/provider:${{ steps.next_version.outputs.version }}

- name: Push Provider Container to latest tag on docker
if: steps.check_version_docker_js_server.outputs.bump == 'true'
run: |
# Push latest
docker tag prosopo/provider:${{ steps.next_version.outputs.version }} prosopo/provider:latest
docker push prosopo/provider:latest
tags: prosopo/provider:${{ steps.next_version.outputs.version }},prosopo/provider:latest

- name: Docker provider release notification
if: always()
Expand Down

0 comments on commit a4c4739

Please sign in to comment.