Repository for general workflows in the getprotocolab repo that handles CI/CD tasks
The CD workflows will build and deploy your repo to the guts argocd clusters. It will also preview your k8s changes when making a PR to the deploy branches.
This workflows only works if your repo includes a Dockerfile, has been included in the k8seks argocd apps and contains a ./deploy
kustomize directory with k8s config.
To use the CD workflows include them in your repository like this.
on:
push:
pull_request:
jobs:
pr_workflow:
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
if: github.event_name == 'pull_request'
uses: GETProtocolLab/workflows/.github/workflows/cd_pr.yml@master
secrets: inherit
push_workflow:
if: github.event_name == 'push'
uses: GETProtocolLab/workflows/.github/workflows/cd_push.yml@master
secrets: inherit
with:
image: ghcr.io/getprotocollab/{{ your_repo }}
argocd_app_name: { { your_argocd_app_name } }
docker run --rm -v $(pwd):/work tmknom/prettier --write .