19 lines
416 B
YAML
19 lines
416 B
YAML
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 }}"
|