Skip to content

Commit 52dd0d6

Browse files
authored
feat(ci): publish docker image on workflow dispatch (#3716)
1 parent 79bdad9 commit 52dd0d6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/node-build.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,10 @@ jobs:
345345
PUSH_DOCKER_IMAGE=true
346346
NEW_VERSION="nightly"
347347
elif [ "${{ github.event_name == 'workflow_dispatch' }}" = true ]; then
348-
NEW_VERSION="manual"
348+
NEW_VERSION="$GITHUB_REF_NAME"
349+
if [[ "${{ github.ref_name }}" != "main" ]]; then
350+
PUSH_DOCKER_IMAGE="true"
351+
fi
349352
elif [ "${{ startsWith(github.ref_name, 'release/v')}}" = true ]; then
350353
PUSH_DOCKER_IMAGE=true
351354
SHOULD_PUSH_TAG=true

0 commit comments

Comments
 (0)