Skip to content

Commit

Permalink
release/ci: Fix Dockerhub publishing (#35966)
Browse files Browse the repository at this point in the history
Fix #35954

Signed-off-by: Ryan Northey <[email protected]>
  • Loading branch information
phlax authored Sep 4, 2024
1 parent 6acedfa commit dbcee3e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/_publish_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ permissions:
on:
workflow_call:
secrets:
dockerhub-username:
required: false
dockerhub-password:
required: false
gpg-key:
required: true
gpg-key-password:
Expand Down Expand Up @@ -128,6 +132,8 @@ jobs:
source: |
export NO_BUILD_SETUP=1
export ENVOY_DOCKER_IN_DOCKER=1
export DOCKERHUB_USERNAME=${{ secrets.dockerhub-username }}
export DOCKERHUB_PASSWORD=${{ secrets.dockerhub-password }}
trusted: ${{ inputs.trusted }}
upload-name: docker
upload-path: build_images
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/envoy-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,14 @@ jobs:
contents: read
packages: read
secrets:
dockerhub-username: >-
${{ fromJSON(needs.load.outputs.trusted)
&& secrets.DOCKERHUB_USERNAME
|| '' }}
dockerhub-password: >-
${{ fromJSON(needs.load.outputs.trusted)
&& secrets.DOCKERHUB_PASSWORD
|| '' }}
gpg-key: ${{ fromJSON(needs.load.outputs.trusted) && secrets.ENVOY_GPG_MAINTAINER_KEY || secrets.ENVOY_GPG_SNAKEOIL_KEY }}
gpg-key-password: >-
${{ fromJSON(needs.load.outputs.trusted)
Expand Down

0 comments on commit dbcee3e

Please sign in to comment.