Skip to content

Commit

Permalink
Update Travis build to push the multiarch images to a new Quay.io repo
Browse files Browse the repository at this point in the history
Signed-off-by: Rafael Peria de Sene <[email protected]>
  • Loading branch information
Rafael Peria de Sene committed Jan 13, 2021
1 parent 1bcfc5b commit 268d900
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@ jobs:
- cd ./dockerfile
- cp ../scripts/deploy-ocp-cluster.sh ./
- sed -i -e "s/VERSION/$VERSION/g" ./Dockerfile
- docker build -t quay.io/powercloud/ocp4-powervs-automation-runtime:ocp-$VERSION-$(uname -m) .
- docker build -t quay.io/powercloud/ocp-upi-powervs-pod:ocp-$VERSION-$(uname -m) .
- docker login quay.io -u $USER_QUAY -p $PWD_QUAY
- docker push quay.io/powercloud/ocp4-powervs-automation-runtime:ocp-$VERSION-$(uname -m)
- docker push quay.io/powercloud/ocp-upi-powervs-pod:ocp-$VERSION-$(uname -m)
- stage: building x86_64 container image
arch: amd64
script:
- cd ./dockerfile
- cp ../scripts/deploy-ocp-cluster.sh ./
- sed -i -e "s/VERSION/$VERSION/g" ./Dockerfile
- docker build -t quay.io/powercloud/ocp4-powervs-automation-runtime:ocp-$VERSION-$(uname -m) .
- docker build -t quay.io/powercloud/ocp-upi-powervs-pod:ocp-$VERSION-$(uname -m) .
- docker login quay.io -u $USER_QUAY -p $PWD_QUAY
- docker push quay.io/powercloud/ocp4-powervs-automation-runtime:ocp-$VERSION-$(uname -m)
- docker push quay.io/powercloud/ocp-upi-powervs-pod:ocp-$VERSION-$(uname -m)
- stage: building multi-arch container image
arch: ppc64le
script: chmod +x ./scripts/multi-arch.sh; ./scripts/multi-arch.sh $VERSION
script: chmod +x ./scripts/multi-arch.sh; ./scripts/multi-arch.sh $VERSION
6 changes: 3 additions & 3 deletions scripts/multi-arch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ OCP_VERSION=ocp-$1

export DOCKER_CLI_EXPERIMENTAL=enabled

docker manifest create quay.io/powercloud/ocp4-powervs-automation-runtime:$OCP_VERSION \
quay.io/powercloud/ocp4-powervs-automation-runtime:ocp-$VERSION-x86_64 quay.io/powercloud/ocp4-powervs-automation-runtime:ocp-$VERSION-ppc64le
docker manifest create quay.io/powercloud/ocp-upi-powervs-pod:$OCP_VERSION \
quay.io/powercloud/ocp-upi-powervs-pod:ocp-$VERSION-x86_64 quay.io/powercloud/ocp-upi-powervs-pod:ocp-$VERSION-ppc64le

docker login quay.io -u $USER_QUAY -p $PWD_QUAY

docker manifest push quay.io/powercloud/ocp4-powervs-automation-runtime:$OCP_VERSION
docker manifest push quay.io/powercloud/ocp-upi-powervs-pod:$OCP_VERSION
2 changes: 1 addition & 1 deletion yamls/ocp-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ spec:
restartPolicy: Never
containers:
- name: ocp-cluster-CLUSTERID
image: quay.io/powercloud/ocp4-powervs-automation-runtime:ocp-VERSION
image: quay.io/powercloud/ocp-upi-powervs-pod:ocp-VERSION
imagePullPolicy: Always
volumeMounts:
- name: nfs-pvc
Expand Down

0 comments on commit 268d900

Please sign in to comment.