Skip to content
This repository has been archived by the owner on Jun 22, 2024. It is now read-only.

Commit

Permalink
first step to create manifests
Browse files Browse the repository at this point in the history
  • Loading branch information
fhoeben committed Dec 18, 2023
1 parent 535f3bf commit 393ba89
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,49 @@ jobs:
ARCH=$(echo << parameters.platforms >> | sed 's/linux\///')
USE_RANDOM_USER_ID=${USE_RANDOM_USER} NAMESPACE=${NAMESPACE} VERSION=${BRANCH}_${ARCH} BUILD_DATE=${BUILD_DATE} SKIP_BUILD=true make test_${ARCH}
manifest-multi-arch:
parameters:
image-name:
type: string
machine-type:
type: executor
executor: << parameters.machine-type >>
environment:
NAMESPACE: seleniarm
BUILD_DATE: today
steps:
- checkout
- restore_cache:
keys:
- multi-arch-images-{{ .Branch }}-{{ .Environment.CIRCLE_WORKFLOW_ID }}-linux/arm64
- restore_cache:
keys:
- multi-arch-images-{{ .Branch }}-{{ .Environment.CIRCLE_WORKFLOW_ID }}-linux/amd64
- run: uname -a
- run: docker info
- run:
name: "Load built images from cache into Docker"
command: |
echo "CIRCLE_WORKFLOW_ID = " $CIRCLE_WORKFLOW_ID
docker load -i images/arm64.tar
docker load -i images/amd64.tar
- run:
name: "Create manifest"
command: |
export VERSION=${CIRCLE_BRANCH//\//-}
export IMAGE_NAME=$NAMESPACE/<< parameters.image_name >>
export MANIFEST_TAG=${VERSION}-${BUILD_DATE}
export ARM_TAG=${VERSION}_arm64-${BUILD_DATE}
export AMD_TAG=${VERSION}_amd64-${BUILD_DATE}
docker manifest create ${IMAGE_NAME}:${MANIFEST_TAG} ${IMAGE_NAME}:${ARM_TAG} ${IMAGE_NAME}:${AMD_TAG}
- run:
name: "Inspect manifest"
command: |
export VERSION=${CIRCLE_BRANCH//\//-}
export IMAGE_NAME=$NAMESPACE/<< parameters.image_name >>
export MANIFEST_TAG=${VERSION}-${BUILD_DATE}
docker manifest inspect ${IMAGE_NAME}:${MANIFEST_TAG}
deploy-multi-arch:
parameters:
platforms:
Expand Down Expand Up @@ -365,6 +408,11 @@ workflows:
requires: [build-multi-arch-amd64]
platforms: linux/amd64
machine-type: ubuntu2204amd64
- manifest-multi-arch:
name: manifest-multi-arch-chromium
requires: [test-multi-arch-arm64, test-multi-arch-amd64]
image-name: chromium
machine-type: ubuntu2204amd64

deploy-multi-arch-full-grid:
jobs:
Expand Down

0 comments on commit 393ba89

Please sign in to comment.