From 344bc166da8ec654cb25761aaac65720f1caac1f Mon Sep 17 00:00:00 2001 From: Joakim Olsson Date: Thu, 8 Jan 2026 14:44:08 +0100 Subject: [PATCH] feat: migrate from GitLab CI to Gitea Actions --- .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..4dbd73f --- /dev/null +++ b/.gitea/workflows/ci.yaml @@ -0,0 +1,33 @@ +name: schemas-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 to production + run: deploy prod diff --git a/k8s/deploy.yaml b/k8s/deploy.yaml index 81501e0..53c80bd 100644 --- a/k8s/deploy.yaml +++ b/k8s/deploy.yaml @@ -37,7 +37,7 @@ spec: topologyKey: kubernetes.io/hostname containers: - name: schemas-app - image: registry.gitlab.com/unboundsoftware/schemas-app:${COMMIT} + image: oci.unbound.se/unboundsoftware/schemas-app:${COMMIT} imagePullPolicy: IfNotPresent ports: - containerPort: 80