@@ -48,12 +48,15 @@ jobs:
48
48
run : |
49
49
if [[ "${{ github.ref }}" == refs/tags/* ]]; then
50
50
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
52
53
elif [ "${{ github.event_name }}" == "push" ] && [ "${{ github.ref }}" == "refs/heads/main" ]; then
53
54
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
55
57
else
56
- echo "tag=dev" >> $GITHUB_OUTPUT
58
+ echo "tag1=dev" >> $GITHUB_OUTPUT
59
+ echo "tag2=nightly-dev" >> $GITHUB_OUTPUT
57
60
fi
58
61
59
62
- name : Build and push to GitHub Container Registry
69
72
PROJECT_VERSION=${{ steps.cpfinfo.outputs.PROJECT_VERSION }}
70
73
push : true
71
74
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 }}
73
77
74
78
- name : Build and push to Docker Hub
75
79
uses : docker/build-push-action@v5
84
88
PROJECT_COMMIT=${{ steps.cpfinfo.outputs.PROJECT_COMMIT }}
85
89
PROJECT_VERSION=${{ steps.cpfinfo.outputs.PROJECT_VERSION }}
86
90
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