Skip to content

Commit

Permalink
ci: Fix multi-line environment variable declaration (#908)
Browse files Browse the repository at this point in the history
  • Loading branch information
theofidry authored Mar 4, 2023
1 parent 9d6240f commit c5fce2a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,11 @@ jobs:

- name: Setup the Docker (release) tag(s)
if: github.event_name == 'release'
# Selects a random value for $EOF as a delimiter, and sets the DOCKER_TAGS environment variable
# as a multi-line environment variable.
run: |
EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
echo "DOCKER_TAGS<<$EOF" >> $GITHUB_ENV
${{ env.DOCKERHUB_USERNAME }}/box:${{ github.ref_name }} >> $GITHUB_ENV
${{ env.DOCKERHUB_USERNAME }}/box:latest >> $GITHUB_ENV
Expand Down

0 comments on commit c5fce2a

Please sign in to comment.