[ci] Update buildah command and version (#7128)

This commit is contained in:
Alexander Samusev
2023-04-24 17:33:07 +02:00
committed by GitHub
parent 63d354aea0
commit 25d557f930
+6 -5
View File
@@ -34,7 +34,8 @@ variables:
GIT_DEPTH: 100 GIT_DEPTH: 100
CI_SERVER_NAME: "GitLab CI" CI_SERVER_NAME: "GitLab CI"
CI_IMAGE: "paritytech/ci-linux:production" CI_IMAGE: "paritytech/ci-linux:production"
BUILDAH_IMAGE: "quay.io/buildah/stable:v1.27" BUILDAH_IMAGE: "quay.io/buildah/stable:v1.29"
BUILDAH_COMMAND: "buildah --storage-driver overlay2"
DOCKER_OS: "debian:stretch" DOCKER_OS: "debian:stretch"
ARCH: "x86_64" ARCH: "x86_64"
ZOMBIENET_IMAGE: "docker.io/paritytech/zombienet:v1.3.43" ZOMBIENET_IMAGE: "docker.io/paritytech/zombienet:v1.3.43"
@@ -169,7 +170,7 @@ default:
- test "$DOCKER_USER" -a "$DOCKER_PASS" || - test "$DOCKER_USER" -a "$DOCKER_PASS" ||
( echo "no docker credentials provided"; exit 1 ) ( echo "no docker credentials provided"; exit 1 )
- cd ./artifacts - cd ./artifacts
- buildah bud - $BUILDAH_COMMAND build
--format=docker --format=docker
--build-arg VCS_REF="${CI_COMMIT_SHA}" --build-arg VCS_REF="${CI_COMMIT_SHA}"
--build-arg BUILD_DATE="$(date -u '+%Y-%m-%dT%H:%M:%SZ')" --build-arg BUILD_DATE="$(date -u '+%Y-%m-%dT%H:%M:%SZ')"
@@ -180,9 +181,9 @@ default:
# The job will success only on the protected branch # The job will success only on the protected branch
- echo "$DOCKER_PASS" | - echo "$DOCKER_PASS" |
buildah login --username "$DOCKER_USER" --password-stdin docker.io buildah login --username "$DOCKER_USER" --password-stdin docker.io
- buildah info - $BUILDAH_COMMAND info
- buildah push --format=v2s2 "$IMAGE_NAME:$VERSION" - $BUILDAH_COMMAND push --format=v2s2 "$IMAGE_NAME:$VERSION"
- buildah push --format=v2s2 "$IMAGE_NAME:$EXTRATAG" - $BUILDAH_COMMAND push --format=v2s2 "$IMAGE_NAME:$EXTRATAG"
after_script: after_script:
- buildah logout --all - buildah logout --all