first commit
This commit is contained in:
commit
54c90b1caf
15 changed files with 348 additions and 0 deletions
18
.gitea/workflows/deploy.yaml
Normal file
18
.gitea/workflows/deploy.yaml
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
on: push
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: test
|
||||
runs-on: debian
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: setup env
|
||||
run: |
|
||||
cat <<EOF >> .env
|
||||
BASE_URL="${{ gitea.ref_name }}.$(tr / '\n' <<< "${{ gitea.repository }}" | tac | tr '\n' .)k8s.gmoker.com"
|
||||
EOF
|
||||
cat .env
|
||||
|
||||
- uses: actions/k8sdeploy@v1
|
||||
with:
|
||||
kubeconfig: "${{ secrets.K8S }}"
|
||||
Reference in a new issue