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

This commit is contained in:
Alexander Samusev
2023-04-24 17:33:46 +02:00
committed by GitHub
parent 2c1dd4f017
commit 77c0b76943
2 changed files with 6 additions and 4 deletions
+4 -4
View File
@@ -2,7 +2,7 @@
# Here are all jobs that are executed during "publish" stage
.build-push-image:
image: quay.io/buildah/stable:v1.27
image: $BUILDAH_IMAGE
variables:
DOCKERFILE: "" # docker/path-to.Dockerfile
IMAGE_NAME: "" # docker.io/paritypr/image_name
@@ -10,7 +10,7 @@
script:
- test "$PARITYPR_USER" -a "$PARITYPR_PASS" ||
( echo "no docker credentials provided"; exit 1 )
- buildah bud
- $BUILDAH_COMMAND build
--format=docker
--build-arg VCS_REF="${CI_COMMIT_SHA}"
--build-arg BUILD_DATE="$(date -u '+%Y-%m-%dT%H:%M:%SZ')"
@@ -19,8 +19,8 @@
--file ${DOCKERFILE} .
- echo "$PARITYPR_PASS" |
buildah login --username "$PARITYPR_USER" --password-stdin docker.io
- buildah info
- buildah push --format=v2s2 "$IMAGE_NAME:$VERSION"
- $BUILDAH_COMMAND info
- $BUILDAH_COMMAND push --format=v2s2 "$IMAGE_NAME:$VERSION"
after_script:
- buildah logout --all