From d23ea2eea150f3f0713765ce5b201890b9727e80 Mon Sep 17 00:00:00 2001 From: Job Date: Mon, 2 Jun 2025 18:32:48 +0000 Subject: [PATCH] ci: update container build script --- .gitea/workflows/ci.yaml | 42 +++++++++++++++++----------------------- 1 file changed, 18 insertions(+), 24 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index dfd8ef5..ed3e5e8 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -1,32 +1,26 @@ -name: Container build -on: [ push ] +name: Build container +on: + push: + schedule: + - cron: '0 16 * * FRI' jobs: - container-build: - runs-on: ubuntu-latest - if: gitea.ref == 'refs/heads/main' + build: + runs-on: container-builder steps: - - name: Clone repo - uses: actions/checkout@v4 - - name: Set up BuildX - uses: docker/setup-buildx-action@v2 + - uses: actions/checkout@v4 + - name: Build + uses: redhat-actions/buildah-build@v2 with: - endpoint: 'unix:///var/run/docker.sock' - - name: Set up QEMU - uses: Job79/setup-qemu-action@master - - name: Login to Registry - uses: docker/login-action@v3 + image: ${{ github.repository_owner }}/${{ github.event.repository.name }} + tags: latest + containerfiles: | + ./Containerfile + - name: Push + uses: redhat-actions/push-to-registry@v2 with: + image: ${{ github.repository_owner }}/${{ github.event.repository.name }} + tags: latest registry: git.plabble.org username: ${{ secrets.REGISTRY_USERNAME }} password: ${{ secrets.REGISTRY_TOKEN }} - - name: Build and push - uses: docker/build-push-action@v4 - with: - context: . - file: ./Containerfile - platforms: | - linux/arm64 - push: true - tags: | - git.plabble.org/job79/pastabble:latest