Skip to content

Commit

Permalink
CI\CD
Browse files Browse the repository at this point in the history
  • Loading branch information
f213 committed Apr 8, 2022
1 parent 5c137aa commit db50fd8
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,24 @@ jobs:
ghcr.io/${{ steps.image.outputs.lowercase }}:${{ github.sha }}
${{ secrets.CONTAINER_REGISTRY_HOST }}/${{ steps.image.outputs.lowercase }}:latest
${{ secrets.CONTAINER_REGISTRY_HOST }}/${{ steps.image.outputs.lowercase }}:${{ github.sha }}
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@v1
with:
string: ${{ github.repository }}

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

0 comments on commit db50fd8

Please sign in to comment.