Skip to content

deploy: 10th deployment (#145) #41

deploy: 10th deployment (#145)

deploy: 10th deployment (#145) #41

name: deploy-manifests
on:
push:
# watch for pull request into main branch
branches:
- main
# watch for changes in infra folder
paths:
- "infra/**"
- "trigger-manifest.txt"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# use and cliententicate doctl
- uses: digitalocean/action-doctl@v2
with:
token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}
# use and cliententicate doctl
- run: doctl kubernetes cluster kubeconfig save my-9th-aurapan-cluster
# apply deployment yaml files (k8s-prod is for production!)
- run: kubectl apply -f infra/k8s && kubectl apply -f infra/k8s-prod