Skip to content

Commit 3ff0401

Browse files
authored
fixed docker 🐳 tag mistake (#158)
1 parent ef5d412 commit 3ff0401

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/docker-publish.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,15 @@ jobs:
4848
run: |
4949
if [[ "${{ github.ref }}" == refs/tags/* ]]; then
5050
VERSION=$(cat sourcecode-parser/VERSION)
51-
echo "tag=v${VERSION}, stable-latest" >> $GITHUB_OUTPUT
51+
echo "tag1=v${VERSION}" >> $GITHUB_OUTPUT
52+
echo "tag2=stable-latest" >> $GITHUB_OUTPUT
5253
elif [ "${{ github.event_name }}" == "push" ] && [ "${{ github.ref }}" == "refs/heads/main" ]; then
5354
VERSION=$(cat sourcecode-parser/VERSION)
54-
echo "tag=dev-${VERSION}, nightly-latest" >> $GITHUB_OUTPUT
55+
echo "tag1=dev-${VERSION}" >> $GITHUB_OUTPUT
56+
echo "tag2=nightly-latest" >> $GITHUB_OUTPUT
5557
else
56-
echo "tag=dev" >> $GITHUB_OUTPUT
58+
echo "tag1=dev" >> $GITHUB_OUTPUT
59+
echo "tag2=nightly-dev" >> $GITHUB_OUTPUT
5760
fi
5861
5962
- name: Build and push to GitHub Container Registry
@@ -69,7 +72,8 @@ jobs:
6972
PROJECT_VERSION=${{ steps.cpfinfo.outputs.PROJECT_VERSION }}
7073
push: true
7174
tags: |
72-
ghcr.io/${{ github.repository_owner }}/code-pathfinder:${{ steps.vars.outputs.tag }}
75+
ghcr.io/${{ github.repository_owner }}/code-pathfinder:${{ steps.vars.outputs.tag1 }}
76+
ghcr.io/${{ github.repository_owner }}/code-pathfinder:${{ steps.vars.outputs.tag2 }}
7377
7478
- name: Build and push to Docker Hub
7579
uses: docker/build-push-action@v5
@@ -84,4 +88,5 @@ jobs:
8488
PROJECT_COMMIT=${{ steps.cpfinfo.outputs.PROJECT_COMMIT }}
8589
PROJECT_VERSION=${{ steps.cpfinfo.outputs.PROJECT_VERSION }}
8690
tags: |
87-
${{ secrets.DOCKER_USERNAME }}/code-pathfinder:${{ steps.vars.outputs.tag }}
91+
${{ secrets.DOCKER_USERNAME }}/code-pathfinder:${{ steps.vars.outputs.tag1 }}
92+
${{ secrets.DOCKER_USERNAME }}/code-pathfinder:${{ steps.vars.outputs.tag2 }}

0 commit comments

Comments
 (0)