element/.gitea/workflows/deploy.yaml
2024-05-01 11:24:20 +02:00

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 }}"