infrastructure/.github/workflows/master.yaml

17 lines
489 B
YAML
Raw Normal View History

2022-12-06 00:30:33 +01:00
name: Deploy app
on:
push:
branches:
2022-12-06 00:31:15 +01:00
- main
2022-12-06 00:30:33 +01:00
jobs:
2022-12-06 00:32:55 +01:00
deploy:
2022-12-06 00:30:33 +01:00
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Download kubectl
run: curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
- name: Setting up kubeconfig
2022-12-06 00:33:12 +01:00
run: echo "${{ secrets.KUBE_CONFIG }}" > kube.config
2022-12-06 00:30:33 +01:00
- name: Check if it works
run: ./kubectl --kubeconfig ./kube.config get nodes