From 3a6b4c588cb61a963898f680cded8af700fbb504 Mon Sep 17 00:00:00 2001 From: Athou Date: Sat, 15 Feb 2025 10:17:57 +0100 Subject: [PATCH] PRs and renovate now build the docker images regardless of the branch/tag --- .github/workflows/ci.yml | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 130dbcb3..9a80887d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -116,7 +116,24 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - ## tags + ## build but don't push for PRs and renovate + - name: Docker build - native + uses: docker/build-push-action@ca877d9245402d1537745e0e356eab47c3520991 # v6 + with: + context: . + file: commafeed-server/src/main/docker/Dockerfile.native + push: false + platforms: linux/amd64,linux/arm64/v8 + + - name: Docker build - jvm + uses: docker/build-push-action@ca877d9245402d1537745e0e356eab47c3520991 # v6 + with: + context: . + file: commafeed-server/src/main/docker/Dockerfile.jvm + push: false + platforms: linux/amd64,linux/arm64/v8 + + ## build and push tag - name: Docker build and push tag - native uses: docker/build-push-action@ca877d9245402d1537745e0e356eab47c3520991 # v6 if: ${{ github.ref_type == 'tag' }} @@ -141,7 +158,7 @@ jobs: athou/commafeed:latest-${{ matrix.database }}-jvm athou/commafeed:${{ github.ref_name }}-${{ matrix.database }}-jvm - ## master + ## build and push master - name: Docker build and push master - native uses: docker/build-push-action@ca877d9245402d1537745e0e356eab47c3520991 # v6 if: ${{ github.ref_name == 'master' }}