Skip to content

Commit

Permalink
OUTPUT
Browse files Browse the repository at this point in the history
  • Loading branch information
maiquanghiep committed Aug 27, 2024
1 parent b71d4a1 commit 9e6ecdd
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/reusable_docker_pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,10 @@ jobs:
if [ -n "${{ inputs.go-private-repos }}" ]; then
SECRETS+='"GO_PRIVATE_TOKEN=test"\n'
fi
echo "SECRETS<<EOF" >> $GITHUB_ENV
echo -e "$SECRETS" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
echo "SECRETS<<EOF" >> $GITHUB_OUTPUT
echo -e "$SECRETS" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
shell: bash

- name: Debug build secrets
Expand All @@ -80,8 +79,7 @@ jobs:
outputs: type=docker,dest=/tmp/${{ env.IMAGE_NAME }}.tar
context: ${{ inputs.dockerContext }}
file: ${{ inputs.dockerfile }}
secrets: |
${{ steps.set-build-secrets.outputs.SECRETS }}
secrets: ${{ steps.set-build-secrets.outputs.SECRETS }}

- name: Upload Docker image to workspace
if: inputs.publish == true
Expand Down

0 comments on commit 9e6ecdd

Please sign in to comment.