From 458fb289a35544484272c55cd35b92c50125dbe1 Mon Sep 17 00:00:00 2001 From: Pasquale De Vita <59291437+pasqualedevita@users.noreply.github.com> Date: Tue, 15 Feb 2022 14:41:49 +0100 Subject: [PATCH] chore: Add Docker latest and nightly tag (#343) --- .github/workflows/build-image.yaml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-image.yaml b/.github/workflows/build-image.yaml index c096a76..8fe0b00 100644 --- a/.github/workflows/build-image.yaml +++ b/.github/workflows/build-image.yaml @@ -5,6 +5,8 @@ on: release: types: - created + schedule: + - cron: '00 00 * * *' jobs: docker: @@ -25,7 +27,8 @@ jobs: - name: Set tag for image run: | echo IMAGE_TAG=$([ ${{ github.ref_type }} == 'tag' ] && echo ${{ github.ref_name }} || echo 'latest') >> $GITHUB_ENV - - name: Build and Push + - name: Build and Push release + if: github.event_name != 'schedule' uses: docker/build-push-action@v2 with: context: . @@ -35,3 +38,15 @@ jobs: push: true tags: | ghcr.io/${{ github.repository }}:${{ env.IMAGE_TAG }} + ghcr.io/${{ github.repository }}:latest + - name: Build and Push nightly + if: github.event_name == 'schedule' + uses: docker/build-push-action@v2 + with: + context: . + build-args: | + INSTALL_ALL=true + platforms: linux/amd64 + push: true + tags: | + ghcr.io/${{ github.repository }}:nightly