From ca04fdd5f44dcc791b21745d5170377525fc7ab4 Mon Sep 17 00:00:00 2001 From: Jarno Rankinen <50285623+0ranki@users.noreply.github.com> Date: Mon, 10 Jun 2024 15:45:39 +0300 Subject: [PATCH] Create build.yaml --- .github/workflows/build.yaml | 39 ++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/build.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..9fa374a --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,39 @@ +name: Daily build + +# Controls when the workflow will run +on: + schedule: + - cron: "39 19 * * *" + push: + branches: + - master + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Login to ghcr.io + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} + - uses: docker/build-push-action@v5 + name: Daily build + with: + context: . + push: true + platforms: linux/amd64,linux/arm64 + build-args: NEXTCLOUD_UPSTREAM_VERSION=${{ env.NEXTCLOUD_UPSTREAM_VERSION }} + tags: | + ghcr.io/0ranki/clamav-docker:latest