-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
35 lines (33 loc) · 967 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
include:
- project: 'Infrastructure/openshift-images/ci-templates'
file: '/buildah.yml'
staging:
extends:
- .buildah
tags:
- aarch64
variables:
OCI_IMAGE_NAME: devdocsgjs
OCI_IMAGE_TAG: aarch64-staging
promote:
interruptible: true
image:
name: quay.io/buildah/stable:latest
variables:
STORAGE_DRIVER: vfs
BUILDAH_ISOLATION: chroot
tags:
- aarch64
variables:
OCI_IMAGE_TAG: aarch64-latest
script:
- buildah pull quay.io/gnome_infrastructure/devdocsgjs:aarch64-staging
- buildah tag quay.io/gnome_infrastructure/devdocsgjs:aarch64-staging quay.io/gnome_infrastructure/devdocsgjs:$OCI_IMAGE_TAG
- >-
if [ "$CI_COMMIT_REF_PROTECTED" == "true" ]; then
buildah login -u ${OCI_REGISTRY_USER} -p ${OCI_REGISTRY_PASSWORD} ${OCI_REGISTRY}
buildah push quay.io/gnome_infrastructure/devdocsgjs:$OCI_IMAGE_TAG
fi
rules:
- if: $CI_COMMIT_REF_NAME == "gnome"
when: manual