From bfbe2885dcfafd346f74ec60e6ecfae105e6b4ea Mon Sep 17 00:00:00 2001 From: thetman Date: Fri, 27 Dec 2024 15:14:33 +0100 Subject: [PATCH] Add .gitea/workflows/build.yaml actions testing --- .gitea/workflows/build.yaml | 46 +++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .gitea/workflows/build.yaml diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml new file mode 100644 index 0000000..7494ae0 --- /dev/null +++ b/.gitea/workflows/build.yaml @@ -0,0 +1,46 @@ +name: Build and push image + +on: +# schedule: +# - cron: '59 4 * * 0' + push: + branches: + - 'master' + +jobs: + deploy: + runs-on: ubuntu-latest + + steps: + - + name: Check out repository code + uses: actions/checkout@v3 + - + run: | + echo "The job was automatically triggered by a ${{ gitea.event_name }} event." + echo "The ${{ gitea.repository }} repository has been cloned to the runner." + - + name: Set up QEMU + uses: https://github.com/docker/setup-qemu-action@v3 + with: + platforms: 'arm64,amd64' + - + name: Set up Docker Buildx + uses: https://github.com/docker/setup-buildx-action@v3 + - + name: Login to Registry + uses: https://github.com/docker/login-action@v3 + with: + registry: ${{ secrets.PACKAGE_URL }} + username: ${{ gitea.actor }} + password: ${{ secrets.PACKAGE_TOKEN }} + - + name: Build and push + uses: https://github.com/docker/build-push-action@v6 + env: + ACTIONS_RUNTIME_TOKEN: '' + with: + push: true + tags: ${{ secrets.PACKAGE_URL }}/${{ gitea.repository }}:latest + platforms: linux/amd64,linux/arm64 +