Skip to content

Commit

Permalink
Update deployment to use infra repository
Browse files Browse the repository at this point in the history
Updates the deployment workflows to pull in the deployment.yaml file
from the infra repository in keeping with our other projects.
  • Loading branch information
jb3 committed Jun 6, 2024
1 parent 2f42c64 commit fe589c8
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 fe589c8

Please sign in to comment.