Skip to content

Commit 31c881c

Browse files
committed
Updated build-test workflow to use SHA instead of user-friendly branch in internal (not pushed) docker tags to prevent errors with docker not overwriting local tags by default.
1 parent 73096f8 commit 31c881c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
submodules: recursive
4141
- name: Tag name env
4242
run: |
43-
DOCKER_IMAGE_TAG=$(echo ${{ github.head_ref || github.ref_name }} | sed 's/[^a-zA-Z0-9\-\._]/-/g')
43+
DOCKER_IMAGE_TAG=${{ github.sha }}
4444
echo "DOCKER_IMAGE_TAG=${DOCKER_IMAGE_TAG}" >> $GITHUB_ENV
4545
- name: Build ANMS
4646
run: ${DOCKER_CMD} compose ${ANMS_COMPOSE_OPTS} build

0 commit comments

Comments
 (0)