From 1021d061d7bac8b7153d2051ccc20a7a23f5e0de Mon Sep 17 00:00:00 2001 From: Joakim Olsson Date: Wed, 7 Jan 2026 16:38:26 +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..35a1d52 --- /dev/null +++ b/.gitea/workflows/ci.yaml @@ -0,0 +1,33 @@ +name: dancefinder-app + +on: + push: + branches: [main] + pull_request: + branches: [main] + +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/main' + runs-on: ubuntu-latest + env: + BUILDTOOLS_CONTENT: ${{ secrets.BUILDTOOLS_CONTENT }} + GITEA_REPOSITORY: ${{ gitea.repository }} + 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 7562af4..4dcbc30 100644 --- a/k8s/deploy.yaml +++ b/k8s/deploy.yaml @@ -44,7 +44,7 @@ spec: periodSeconds: 5 timeoutSeconds: 5 imagePullPolicy: Always - image: registry.gitlab.com/unboundsoftware/dancefinder/dancefinder-app:${COMMIT} + image: oci.unbound.se/dancefinder/dancefinder-app:${COMMIT} ports: - containerPort: 80 resources: