From 475cbeec0318c55a9b0087313049395137582be6 Mon Sep 17 00:00:00 2001 From: Job79 Date: Thu, 16 Oct 2025 16:55:22 +0200 Subject: [PATCH] ci: switch to gitea --- {.github => .gitea}/workflows/ci.yaml | 50 +++++++-------------------- 1 file changed, 12 insertions(+), 38 deletions(-) rename {.github => .gitea}/workflows/ci.yaml (52%) diff --git a/.github/workflows/ci.yaml b/.gitea/workflows/ci.yaml similarity index 52% rename from .github/workflows/ci.yaml rename to .gitea/workflows/ci.yaml index cdced93..6bf9714 100644 --- a/.github/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -1,6 +1,7 @@ name: Build container on: push: + branches: ["main"] pull_request: branches: ["main"] schedule: @@ -8,70 +9,43 @@ on: jobs: base-build: - runs-on: ubuntu-24.04 + runs-on: job-latest steps: - - &clone_repo - name: Clone repo + - name: Clone repo uses: actions/checkout@v4 - - &setup_buildx - name: Setup Docker Buildx + - name: Setup Docker Buildx uses: docker/setup-buildx-action@v3 - - &login_registry - name: Login to Registry + - name: Login to Registry uses: docker/login-action@v3 with: - registry: ghcr.io - username: ${{ github.repository_owner }} - password: ${{ secrets.GITHUB_TOKEN }} + registry: git.plabble.org + username: ${{ secrets.REGISTRY_USERNAME }} + password: ${{ secrets.REGISTRY_TOKEN }} - name: Build and push base container uses: docker/build-push-action@v5 with: context: ./containers/base file: ./containers/base/Containerfile push: true - tags: ghcr.io/${{ github.repository_owner }}/base:latest - - go-build: - runs-on: ubuntu-24.04 - needs: base-build - steps: - - *clone_repo - - *setup_buildx - - *login_registry + tags: git.plabble.org/job79/base:${{ github.ref_name }} - name: Build and push go container uses: docker/build-push-action@v5 with: context: ./containers/go file: ./containers/go/Containerfile push: true - tags: ghcr.io/${{ github.repository_owner }}/go:latest - - infra-build: - runs-on: ubuntu-24.04 - needs: base-build - steps: - - *clone_repo - - *setup_buildx - - *login_registry + tags: git.plabble.org/job79/go:${{ github.ref_name }} - name: Build and push infra container uses: docker/build-push-action@v5 with: context: ./containers/infra file: ./containers/infra/Containerfile push: true - tags: ghcr.io/${{ github.repository_owner }}/infra:latest - - kali-build: - runs-on: ubuntu-24.04 - needs: base-build - steps: - - *clone_repo - - *setup_buildx - - *login_registry + tags: git.plabble.org/job79/infra:${{ github.ref_name }} - name: Build and push kali container uses: docker/build-push-action@v5 with: context: ./containers/kali file: ./containers/kali/Containerfile push: true - tags: ghcr.io/${{ github.repository_owner }}/kali:latest + tags: git.plabble.org/job79/kali:${{ github.ref_name }}