File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 45
45
# Extract branch name
46
46
BRANCH_NAME=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
47
47
48
- # Append branch name to image ID
49
- IMAGE_ID=$IMAGE_ID-$BRANCH_NAME
50
-
51
48
# Change all uppercase to lowercase
52
49
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
53
50
73
70
if : ${{ github.event_name != 'pull_request' }}
74
71
# This is where you will update the PAT to GITHUB_TOKEN
75
72
run : echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
76
-
73
+
77
74
- name : Get images
78
75
shell : bash
79
76
run : |
87
84
[[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
88
85
# Use Docker `latest` tag convention
89
86
[ "$VERSION" == "main" ] && VERSION=latest
90
- docker manifest create $IMAGE_ID:$VERSION $IMAGE_ID:$VERSION-arm64 $IMAGE_ID:$VERSION-x86_64
91
- docker manifest push $IMAGE_ID:$VERSION
87
+ echo IMAGE_NAME=$IMAGE_NAME
88
+ echo IMAGE_ID=$IMAGE_ID
89
+ echo VERSION=$VERSION
90
+ docker manifest create $IMAGE_ID:$VERSION $IMAGE_ID:$VERSION-x86_64
91
+ docker manifest push $IMAGE_ID:$VERSION
You can’t perform that action at this time.
0 commit comments