Skip to content

Commit

Permalink
Delivery
Browse files Browse the repository at this point in the history
  • Loading branch information
f213 committed Dec 21, 2024
1 parent 1d0abb7 commit 7c7a7a0
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,22 @@ jobs:
- RELEASE=${{ github.sha }}
cache-from: type=gha
cache-to: type=gha,mode=max

deploy:
needs: build-docker-image
if: ${{ github.ref == 'refs/heads/master' }}
runs-on: ubuntu-latest
steps:
- name: Read image identifiers
id: image
uses: ASzc/change-string-case-action@v6
with:
string: ${{ github.repository }}

- name: Update production image
uses: appleboy/[email protected]
with:
host: ${{ secrets.DEPLOY_HOST }}
username: circle
key: ${{ secrets.DEPLOY_KEY }}
script: docker service update diploma-generator_backend --image ghcr.io/${{ steps.image.outputs.lowercase }}:${{ github.sha }} --with-registry-auth

0 comments on commit 7c7a7a0

Please sign in to comment.