Skip to content

Commit 3ce97e2

Browse files
committed
docker workflow: Ensure $REGISTRY is printed
GITHUB_ENV only takes effect on following actions
1 parent b209342 commit 3ce97e2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,11 @@ jobs:
5050
- name: Should we push this image to a public registry?
5151
run: |
5252
if [ "${{ startsWith(github.ref, 'refs/tags/') || (github.ref == 'refs/heads/main') }}" = "true" ]; then
53-
echo "REGISTRY=$DEFAULT_REGISTRY" >> $GITHUB_ENV
53+
REGISTRY=$DEFAULT_REGISTRY
5454
else
55-
echo "REGISTRY=localhost:5000" >> $GITHUB_ENV
55+
REGISTRY=localhost:5000
5656
fi
57+
echo "REGISTRY=$REGISTRY" >> $GITHUB_ENV
5758
echo "Publishing to $REGISTRY"
5859
5960
# versioneer requires the full git history for non-tags

0 commit comments

Comments
 (0)