From be42309eb16e21a426f91969846e2e91aa6a44c9 Mon Sep 17 00:00:00 2001 From: sthope Date: Tue, 18 Mar 2025 20:51:55 +0100 Subject: [PATCH] first commit --- .gitea/workflows/build.yml | 47 ++++++++++++++------------------------ 1 file changed, 17 insertions(+), 30 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 2603941..183a2c3 100755 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -1,44 +1,31 @@ -name: Docker +name: ci on: - schedule: - - cron: '0 6 * * 0' push: - branches: [ "main" ] - tags: [ 'v*.*.*' ] - pull_request: - branches: [ "main" ] - -env: - # Use docker.io or ghcr.io - REGISTRY: docker.io - RELEASE: latest - USER: sthopeless - IMAGE: ${{ github.repository }} jobs: - build: + docker: runs-on: ubuntu-latest - permissions: - contents: read - id-token: write - packages: write steps: - - uses: actions/checkout@v4 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - - name: Log into registry ${{ env.REGISTRY }} + - + name: Checkout + uses: actions/checkout@v4 + - + name: Login to Docker Hub uses: docker/login-action@v3 with: - registry: ${{ env.REGISTRY }} username: ${{ secrets.DOCKER_USER }} password: ${{ secrets.DOCKER_PASS }} - - - name: Build and push + - + name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - + name: Build and push uses: docker/build-push-action@v6 with: - file: ./Dockerfile + context: . push: true - tags: sthopeless/gitea-actions-repos-compare:latest + tags: sthopeless/gitea-actions-repos-compare:latest \ No newline at end of file