Skip to content

Commit c39a1f5

Browse files
authored
Merge pull request #36 from rafaelbreno/main-fix-publish
Main fix publish
2 parents fd71e50 + 1eb70b7 commit c39a1f5

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/release.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ jobs:
6262
image: ${{ env.IMAGE }}
6363
tag: ${{ env.GIT_TAG }}-${{ matrix.os }}-${{ matrix.arch }}
6464
make-target: push-image
65+
platforms: ${{ matrix.os }}/${{ matrix.arch }}
6566

6667
public-repo: ${{ env.REPO }}
6768
public-username: ${{ env.DOCKER_USERNAME }}
@@ -79,6 +80,7 @@ jobs:
7980
image: ${{ env.IMAGE }}
8081
tag: ${{ env.GIT_TAG }}-${{ matrix.os }}-${{ matrix.arch }}
8182
make-target: push-image
83+
platforms: ${{ matrix.os }}/${{ matrix.arch }}
8284

8385
push-to-public: false
8486

@@ -98,6 +100,7 @@ jobs:
98100
image: ${{ env.IMAGE }}
99101
tag: ${{ env.GIT_TAG }}-${{ matrix.os }}-${{ matrix.arch }}
100102
make-target: push-image
103+
platforms: ${{ matrix.os }}/${{ matrix.arch }}
101104

102105
push-to-public: false
103106

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ ifndef TARGET_PLATFORMS
2626
endif
2727

2828
TAG ?= ${TAG}
29+
PRIME_RIBS ?= ${PRIME_RIBS}
2930

3031
export DOCKER_BUILDKIT?=1
3132

@@ -50,4 +51,4 @@ push-image:
5051

5152
.PHONY: publish-manifest
5253
publish-manifest: ## Create and push the runtime manifest
53-
./scripts/publish-manifest
54+
IMAGE=$(IMAGE) ./scripts/publish-manifest

scripts/publish-manifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ docker buildx imagetools create \
1515
"${IMAGE}-linux-arm64"
1616

1717
if [[ -n "${IID_FILE}" ]]; then
18-
docker buildx imagetools inspect "${IMAGE}"
18+
docker buildx imagetools inspect --format "{{json .Manifest}}" ${IMAGE} | jq -r '.digest' > ${IID_FILE}
1919
fi

0 commit comments

Comments
 (0)