forked from rancher/rke2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add manifest pipeline for rke2-runtime docker image (rancher#6397)
Signed-off-by: galal-hussein <[email protected]>
- Loading branch information
1 parent
ffe6de9
commit 87499a0
Showing
4 changed files
with
52 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/env bash | ||
set -ex | ||
|
||
cd $(dirname $0)/.. | ||
|
||
source ./scripts/version.sh | ||
export DOCKER_CLI_EXPERIMENTAL=enabled | ||
|
||
docker manifest create \ | ||
${REPO}/${PROG}-runtime:${DOCKERIZED_VERSION} \ | ||
${REPO}/${PROG}-runtime:${DOCKERIZED_VERSION}-linux-amd64 \ | ||
${REPO}/${PROG}-runtime:${DOCKERIZED_VERSION}-linux-arm64 \ | ||
${REPO}/${PROG}-runtime:${DOCKERIZED_VERSION}-windows-amd64 | ||
|
||
docker manifest annotate ${REPO}/${PROG}-runtime:${DOCKERIZED_VERSION} ${REPO}/${PROG}-runtime:${DOCKERIZED_VERSION}-linux-amd64 --os linux --arch amd64 | ||
docker manifest annotate ${REPO}/${PROG}-runtime:${DOCKERIZED_VERSION} ${REPO}/${PROG}-runtime:${DOCKERIZED_VERSION}-linux-arm64 --os linux --arch arm64 | ||
docker manifest annotate ${REPO}/${PROG}-runtime:${DOCKERIZED_VERSION} ${REPO}/${PROG}-runtime:${DOCKERIZED_VERSION}-windows-amd64 --os windows --arch amd64 | ||
|
||
set +x | ||
docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD | ||
set -x | ||
|
||
docker manifest push ${REPO}/${PROG}-runtime:${DOCKERIZED_VERSION} |