ci: add images to images.yml #10
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
name: "Deploy" | |
on: | |
push: | |
branches: | |
- 'main' | |
jobs: | |
deploy-acc: | |
name: "Deploy openstad-headless to acc" | |
runs-on: "ubuntu-latest" | |
env: | |
SOPS_AGE_KEY: ${{ secrets.SOPS_AGE_KEY }} | |
SOPS_AGE_KEY_FILE: headless.agekey | |
SOPS_AGE_RECIPIENTS: age1pnz2leuqnfhyt9qpxjjcjs9xe9ys8xjkjn9m656wygy3ndfxya0q6kthy8 | |
# Use the Bash shell regardless whether the GitHub Actions runner is ubuntu-latest, macos-latest, or windows-latest | |
defaults: | |
run: | |
shell: bash | |
# Checkout the repository to the GitHub Actions runner | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
# setup helm | |
- uses: azure/setup-helm@v3 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} # only needed if version is 'latest' | |
version: 'v3.6.3' | |
id: install_helm | |
# setup kubernetes + config | |
- uses: azure/setup-kubectl@v3 | |
id: install_kubectl | |
# setup sops | |
- name: Sops Binary Installer | |
uses: mdgreenwald/mozilla-sops-action@v1.5.0 | |
id: install_sops | |
with: | |
version: "v3.7.3" | |
- name: Create age key file | |
run: | | |
echo $SOPS_AGE_KEY > $SOPS_AGE_KEY_FILE | |
# setup kubeconfig | |
- name: Setup kubeconfig | |
uses: azure/k8s-set-context@v3 | |
with: | |
method: kubeconfig | |
kubeconfig: ${{ secrets.KUBE_CONFIG}} | |
# run deployment scripts | |
- name: Run ACC deployment script | |
run: ./operations/deployments/openstad-headless/deploy-acc.sh | |