Commit f49bccc 1 parent fb026ef commit f49bccc Copy full SHA for f49bccc
File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 12
12
name : Push container image to GitHub Container Registry
13
13
runs-on : ubuntu-latest
14
14
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
15
23
- name : Set up QEMU
16
24
uses : docker/setup-qemu-action@v3
17
25
- name : Set up Docker Buildx
22
30
registry : ghcr.io
23
31
username : ${{ github.actor }}
24
32
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
33
33
- name : Build and push container image
34
34
uses : docker/build-push-action@v6
35
35
with :
You can’t perform that action at this time.
0 commit comments