Skip to content

deploy-manifests

deploy-manifests #38

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 aurapan-k8s-cluster
# apply deployment yaml files (k8s-prod is for production!)
- run: kubectl apply -f infra/k8s && kubectl apply -f infra/k8s-prod