Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Provider push and Flux redeploy in publish #1153

Merged
merged 2 commits into from
Apr 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading