From 2d24ef8dee4a8cce04e2c91ec64c0e5c6b27c8fd Mon Sep 17 00:00:00 2001 From: Joakim Olsson Date: Tue, 6 Jan 2026 13:08:56 +0100 Subject: [PATCH] ci: migrate from GitLab CI to Gitea Actions - Add Gitea Actions workflow (.gitea/workflows/ci.yaml) - Update K8s deployment image registry to oci.unbound.se --- .gitea/workflows/ci.yaml | 33 +++++++++++++++++++++++++++++++++ k8s/deploy.yaml | 2 +- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 .gitea/workflows/ci.yaml diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml new file mode 100644 index 0000000..820b39b --- /dev/null +++ b/.gitea/workflows/ci.yaml @@ -0,0 +1,33 @@ +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 + - name: Check buildtools on path + run: which build && which push + - 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 + - name: Deploy + run: deploy prod diff --git a/k8s/deploy.yaml b/k8s/deploy.yaml index b2f1335..e5b1b66 100644 --- a/k8s/deploy.yaml +++ b/k8s/deploy.yaml @@ -41,7 +41,7 @@ spec: requests: memory: "100Mi" imagePullPolicy: Always - image: registry.gitlab.com/unboundsoftware/dancefinder/geo-service:${COMMIT} + image: oci.unbound.se/unboundsoftware/dancefinder/geo-service:${COMMIT} ports: - containerPort: 80 name: http