Skip to content

Commit

Permalink
Merge pull request #150 from python-discord/jb3/deployment/infra-repo
Browse files Browse the repository at this point in the history
Update deployment to use infra repository
  • Loading branch information
jchristgit authored Jun 6, 2024
2 parents 2f42c64 + fe589c8 commit e6c6526
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 33 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,21 +62,24 @@ jobs:
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/main' }}
steps:
- name: Checkout code
- name: Checkout Kubernetes repository
uses: actions/checkout@v4
with:
repository: python-discord/infra
path: infra

- uses: azure/setup-kubectl@v3
- uses: azure/setup-kubectl@v4

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

- name: Deploy to Kubernetes
uses: Azure/k8s-deploy@v4
uses: azure/k8s-deploy@v5
with:
namespace: bots
manifests: |
deployment.yaml
infra/kubernetes/namespaces/bots/metricity/deployment.yaml
images: 'ghcr.io/python-discord/metricity:${{ inputs.sha-tag }}'
28 changes: 0 additions & 28 deletions deployment.yaml

This file was deleted.

0 comments on commit e6c6526

Please sign in to comment.