2cf7206c1e
- Add Gitea Actions workflow (.gitea/workflows/ci.yaml) - Update K8s deployment image registry to oci.unbound.se
36 lines
765 B
YAML
36 lines
765 B
YAML
name: geo-service
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
branches: [master]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
BUILDTOOLS_CONTENT: ${{ vars.BUILDTOOLS_CONTENT }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: buildtool/setup-buildtools-action@v1
|
|
with:
|
|
debug-log: true
|
|
- name: Build and push
|
|
run: build && push
|
|
|
|
deploy-prod:
|
|
needs: build
|
|
if: gitea.ref == 'refs/heads/master'
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
BUILDTOOLS_CONTENT: ${{ vars.BUILDTOOLS_CONTENT }}
|
|
environment: prod
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: buildtool/setup-buildtools-action@v1
|
|
with:
|
|
debug-log: true
|
|
- name: Deploy
|
|
run: deploy prod
|