Skip to content

Commit

Permalink
#patch Use latest tag for redeploy.
Browse files Browse the repository at this point in the history
  • Loading branch information
h3nryc0ding committed Jan 6, 2024
1 parent d3eff48 commit 99558fe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ jobs:
needs: [ Build, Lint, Test ]
environment: production
runs-on: ubuntu-latest
outputs:
new_tag: ${{ steps.tag.outputs.new_tag }}
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down Expand Up @@ -139,5 +141,5 @@ jobs:
mkdir -p $HOME/.kube
echo "${K8S_CONFIG}" | base64 --decode > $HOME/.kube/config
- name: Restart Deployment
run: kubectl rollout restart deployment/backend -n prod
- name: Set version for new image.
run: kubectl set image deployment/backend backend=ghcr.io/h3nryc0ding/microk8s_plaground/backend:${{ needs.Dockerize.outputs.new_tag }} -n prod

0 comments on commit 99558fe

Please sign in to comment.