💚(ci) push images to docker hub for PR branches

This is useful for testing PRs before merging.
This commit is contained in:
Jonathan Perret
2024-04-24 18:14:22 +02:00
parent edf7edce37
commit 9b288b3fb9
+1 -2
View File
@@ -35,7 +35,6 @@ jobs:
age-key: ${{ secrets.SOPS_PRIVATE }}
-
name: Login to DockerHub
if: github.event_name != 'pull_request'
run: echo "$DOCKER_HUB_PASSWORD" | docker login -u "$DOCKER_HUB_USER" --password-stdin
-
name: Build and push
@@ -43,7 +42,7 @@ jobs:
with:
context: .
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}