Skip to content

Commit 8195588

Browse files
authored
fix env passing to steps
1 parent e4034c2 commit 8195588

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/build-container.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
tags: [ "v*" ]
77

88
jobs:
9-
build-and-push-matrix:
9+
build-and-push:
1010
name: Build & Push
1111
runs-on: ubuntu-latest
1212
permissions:
@@ -42,6 +42,8 @@ jobs:
4242
password: ${{ secrets.DOCKER_HUB_PAT }}
4343

4444
- name: Build standard image
45+
env:
46+
USE_DOCKER_HUB: ${{ env.USE_DOCKER_HUB }}
4547
run: |
4648
TAGS="--tag ghcr.io/${{ github.repository }}:${{ env.IMAGE_TAG }}"
4749
@@ -63,6 +65,8 @@ jobs:
6365
echo "IMAGE_DIGEST=$DIG" >> $GITHUB_ENV
6466
6567
- name: Build distroless image
68+
env:
69+
USE_DOCKER_HUB: ${{ env.USE_DOCKER_HUB }}
6670
run: |
6771
TAGS="--tag ghcr.io/${{ github.repository }}:${{ env.IMAGE_TAG }}-dless"
6872

0 commit comments

Comments
 (0)