mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-24 10:05:48 +00:00
[ci] Update buildah command and version (#2479)
This commit is contained in:
committed by
GitHub
parent
4e3f0857ab
commit
65eee675a6
@@ -30,6 +30,8 @@ variables:
|
|||||||
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"
|
||||||
|
BUILDAH_IMAGE: "quay.io/buildah/stable:v1.29"
|
||||||
|
BUILDAH_COMMAND: "buildah --storage-driver overlay2"
|
||||||
|
|
||||||
.common-before-script:
|
.common-before-script:
|
||||||
before_script:
|
before_script:
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
# Here are all jobs that are executed during "publish" stage
|
# Here are all jobs that are executed during "publish" stage
|
||||||
|
|
||||||
.build-push-image:
|
.build-push-image:
|
||||||
image: quay.io/buildah/stable:v1.27
|
image: $BUILDAH_IMAGE
|
||||||
variables:
|
variables:
|
||||||
DOCKERFILE: "" # docker/path-to.Dockerfile
|
DOCKERFILE: "" # docker/path-to.Dockerfile
|
||||||
IMAGE_NAME: "" # docker.io/paritypr/image_name
|
IMAGE_NAME: "" # docker.io/paritypr/image_name
|
||||||
@@ -10,7 +10,7 @@
|
|||||||
script:
|
script:
|
||||||
- test "$PARITYPR_USER" -a "$PARITYPR_PASS" ||
|
- test "$PARITYPR_USER" -a "$PARITYPR_PASS" ||
|
||||||
( echo "no docker credentials provided"; exit 1 )
|
( echo "no docker credentials provided"; exit 1 )
|
||||||
- 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')"
|
||||||
@@ -19,8 +19,8 @@
|
|||||||
--file ${DOCKERFILE} .
|
--file ${DOCKERFILE} .
|
||||||
- echo "$PARITYPR_PASS" |
|
- echo "$PARITYPR_PASS" |
|
||||||
buildah login --username "$PARITYPR_USER" --password-stdin docker.io
|
buildah login --username "$PARITYPR_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"
|
||||||
after_script:
|
after_script:
|
||||||
- buildah logout --all
|
- buildah logout --all
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user