forked from python-discord/bot
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the deploy stage of our build pipeline
I've fixed the deploy stage of our build pipeline, as it got mixed in with the old workflow file due to a merge conflict. The deploy stage is currently split into a separate workflow; theoretically, this allows us to trigger a redeploy from GitHub, without having to build the container image again. Signed-off-by: Sebastiaan Zeeff <[email protected]>
- Loading branch information
1 parent
506909e
commit d65785a
Showing
3 changed files
with
36 additions
and
172 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Deploy | ||
|
||
on: | ||
workflow_run: | ||
workflows: ["Build"] | ||
branches: | ||
- master | ||
types: | ||
- completed | ||
|
||
jobs: | ||
build: | ||
if: github.event.workflow_run.conclusion == 'success' | ||
name: Build & Push | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Authenticate with Kubernetes | ||
uses: azure/k8s-set-context@v1 | ||
with: | ||
method: kubeconfig | ||
kubeconfig: ${{ secrets.KUBECONFIG }} | ||
|
||
- name: Deploy to Kubernetes | ||
uses: Azure/k8s-deploy@v1 | ||
with: | ||
manifests: | | ||
deployment.yaml | ||
images: 'ghcr.io/python-discord/bot:${{ steps.sha_tag.outputs.tag }}' | ||
kubectl-version: 'latest' |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters