Skip to content

Commit

Permalink
use kubectl to update deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
randomairborne committed May 5, 2024
1 parent e7eda0a commit b2e50f0
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
check:
uses: ./.github/workflows/check.yml
build:
needs: [ check ]
needs: [check]
runs-on: ubuntu-latest
steps:
- name: Correct env
Expand All @@ -38,7 +38,18 @@ jobs:
with:
context: .
push: true
tags: ghcr.io/${{ env.REPO }}:latest
tags: ghcr.io/${{ env.REPO }}:latest,ghcr.io/${{ env.REPO }}:git-${{ github.sha }}
platforms: linux/amd64
cache-from: type=gha
cache-to: type=gha,mode=max
cache-to: type=gha,mode=max
deploy:
needs: [build]
runs-on: ubuntu-latest
steps:
- uses: actions-hub/kubectl@master
env:
KUBE_HOST: ${{ secrets.KUBE_HOST }}
KUBE_CERTIFICATE: ${{ secrets.KUBE_CERTIFICATE }}
KUBE_TOKEN: ${{ secrets.KUBE_TOKEN }}
with:
args: set image deployment/mcping mcping=ghcr.io/${{ env.REPO }}:git-${{ github.sha }}

0 comments on commit b2e50f0

Please sign in to comment.