add comment to forcly run the manifests workflow #3
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: manifests-deployment | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "infra/**" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install doctl | |
uses: digitalocean/action-doctl@v2 | |
with: | |
token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }} | |
- name: Save DigitalOcean kubeconfig | |
run: doctl kubernetes cluster kubeconfig save ${{ secrets.DIGITALOCEAN_KUBERNETES_CLUSTER_NAME }} | |
- name: Apply common k8s manifests files to work on the cluster | |
run: kubectl apply -f infra/k8s | |
- name: Apply production k8s manifests files to work on the cluster | |
run: kubectl apply -f infra/k8s-prod |