File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 1212 name : Push container image to GitHub Container Registry
1313 runs-on : ubuntu-latest
1414 steps :
15+ - name : Generate tag name
16+ run : |
17+ if [[ ${BRANCH} == "main" ]]; then
18+ IMAGE_TAG="latest"
19+ else
20+ IMAGE_TAG="${BRANCH/\//-}"
21+ fi
22+ echo "IMAGE_TAG=${IMAGE_TAG}" >> $GITHUB_ENV
1523 - name : Set up QEMU
1624 uses : docker/setup-qemu-action@v3
1725 - name : Set up Docker Buildx
2230 registry : ghcr.io
2331 username : ${{ github.actor }}
2432 password : ${{ secrets.GITHUB_TOKEN }}
25- - name : Generate tag name
26- run : |
27- if [[ ${BRANCH} == "main" ]]; then
28- IMAGE_TAG="latest"
29- else
30- IMAGE_TAG="${BRANCH/\//-}"
31- fi
32- echo "IMAGE_TAG=${IMAGE_TAG}" >> $GITHUB_ENV
3333 - name : Build and push container image
3434 uses : docker/build-push-action@v6
3535 with :
You can’t perform that action at this time.
0 commit comments