Skip to content

Commit bb5fe4b

Browse files
authored
Only push the x86_64 version of the image (#1325)
* Only push the x86_64 version of the image * Don't use a branch in the image name
1 parent 156ac18 commit bb5fe4b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/docker.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,6 @@ jobs:
4545
# Extract branch name
4646
BRANCH_NAME=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
4747
48-
# Append branch name to image ID
49-
IMAGE_ID=$IMAGE_ID-$BRANCH_NAME
50-
5148
# Change all uppercase to lowercase
5249
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
5350
@@ -73,7 +70,7 @@ jobs:
7370
if: ${{ github.event_name != 'pull_request' }}
7471
# This is where you will update the PAT to GITHUB_TOKEN
7572
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
76-
73+
7774
- name: Get images
7875
shell: bash
7976
run: |
@@ -87,5 +84,8 @@ jobs:
8784
[[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
8885
# Use Docker `latest` tag convention
8986
[ "$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

0 commit comments

Comments
 (0)