PRs now build the docker images but don't push them

This commit is contained in:
Athou
2025-02-15 10:13:25 +01:00
parent f519aa039f
commit 48071b9fd1

View File

@@ -63,7 +63,8 @@ jobs:
docker:
runs-on: ubuntu-latest
needs: build
if: ${{ github.ref_type == 'tag' || github.ref_name == 'master' }}
env:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
strategy:
matrix:
@@ -110,6 +111,7 @@ jobs:
# Docker
- name: Login to Container Registry
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3
if: ${{ env.DOCKERHUB_USERNAME != '' }}
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
@@ -121,7 +123,7 @@ jobs:
with:
context: .
file: commafeed-server/src/main/docker/Dockerfile.native
push: true
push: ${{ env.DOCKERHUB_USERNAME != '' }}
platforms: linux/amd64,linux/arm64/v8
tags: |
athou/commafeed:latest-${{ matrix.database }}
@@ -133,7 +135,7 @@ jobs:
with:
context: .
file: commafeed-server/src/main/docker/Dockerfile.jvm
push: true
push: ${{ env.DOCKERHUB_USERNAME != '' }}
platforms: linux/amd64,linux/arm64/v8
tags: |
athou/commafeed:latest-${{ matrix.database }}-jvm
@@ -146,7 +148,7 @@ jobs:
with:
context: .
file: commafeed-server/src/main/docker/Dockerfile.native
push: true
push: ${{ env.DOCKERHUB_USERNAME != '' }}
platforms: linux/amd64,linux/arm64/v8
tags: athou/commafeed:master-${{ matrix.database }}
@@ -156,7 +158,7 @@ jobs:
with:
context: .
file: commafeed-server/src/main/docker/Dockerfile.jvm
push: true
push: ${{ env.DOCKERHUB_USERNAME != '' }}
platforms: linux/amd64,linux/arm64/v8
tags: athou/commafeed:master-${{ matrix.database }}-jvm