Files
dancefetcher/.gitea/workflows/ci.yaml
T
argoyle acfd041884
dancefetcher / build (pull_request) Successful in 7m33s
dancefetcher / deploy-prod (pull_request) Has been skipped
ci: add KUBECONFIG_CONTENT secret to deploy job
2026-01-07 17:12:24 +01:00

35 lines
869 B
YAML

name: dancefetcher
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
env:
BUILDTOOLS_CONTENT: ${{ secrets.BUILDTOOLS_CONTENT }}
GITEA_REPOSITORY: ${{ gitea.repository }}
steps:
- uses: actions/checkout@v4
- uses: buildtool/setup-buildtools-action@v1
- name: Build and push
run: unset GITEA_TOKEN && build && push
deploy-prod:
needs: build
if: gitea.ref == 'refs/heads/master'
runs-on: ubuntu-latest
env:
BUILDTOOLS_CONTENT: ${{ secrets.BUILDTOOLS_CONTENT }}
GITEA_REPOSITORY: ${{ gitea.repository }}
KUBECONFIG_CONTENT: ${{ secrets.KUBECONFIG_CONTENT }}
environment: prod
steps:
- uses: actions/checkout@v4
- uses: buildtool/setup-buildtools-action@v1
- name: Deploy
run: deploy prod