add missing 42 file #16
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
on: | |
push: | |
paths: | |
- 'html/**' | |
branches: | |
- main | |
- master | |
name: Deploy nginx | |
jobs: | |
deploy: | |
name: Deploy to cluster | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
ref: master | |
- name: Deploy to cluster | |
uses: gnuu-de/kubectl@master | |
env: | |
KUBE_CONFIG_DATA: ${{ secrets.KUBE_CONFIG_DATA }} | |
with: | |
args: rollout restart deployment/nginx | |
- name: Verify deployment | |
uses: gnuu-de/kubectl@master | |
env: | |
KUBE_CONFIG_DATA: ${{ secrets.KUBE_CONFIG_DATA }} | |
with: | |
args: get pods -l app=nginx | |
- name: Announce deployment | |
uses: wei/curl@v1 | |
env: | |
MATRIX_KEY: ${{ secrets.MATRIX_KEY }} | |
MATRIX_ROOM: ${{ secrets.MATRIX_ROOM }} | |
with: | |
args: -d '{\"text\":\"New deployment nginx done\", \"key\":\"'${MATRIX_KEY}'\", \"room\":\"'${MATRIX_ROOM}'\"}' https://api.gnuu.de/matrixbot/ |