Skip to content

Commit

Permalink
Add deployment on commits to main
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisLovering committed Aug 18, 2024
1 parent 26954a4 commit e6a9a49
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/build-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,31 @@ jobs:
ghcr.io/owl-corp/thallium-${{ inputs.project }}:${{ inputs.sha-tag }}
build-args: |
git_sha=${{ github.sha }}
deploy:
name: Deploy
needs: build
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/main' }}
steps:
- name: Checkout Kubernetes repository
uses: actions/checkout@v4
with:
repository: python-discord/infra
path: infra

- uses: azure/setup-kubectl@v4

- name: Authenticate with Kubernetes
uses: azure/k8s-set-context@v4
with:
method: kubeconfig
kubeconfig: ${{ secrets.KUBECONFIG }}

- name: Deploy to Kubernetes
uses: azure/k8s-deploy@v5
with:
namespace: merch
manifests: |
infra/kubernetes/namespaces/merch/deployment.yaml
images: 'ghcr.io/owl-corp/thallium:${{ inputs.sha-tag }}'

0 comments on commit e6a9a49

Please sign in to comment.