aboutsummaryrefslogtreecommitdiffstats
path: root/.gitlab-ci.yml
blob: c0d7b4382ec7b34aeef9c8186854621be69d5d2d (plain)
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
36
37
38
39
40
41
42
43
44
45
46
47
#image: quay.io/centos/centos:stream8
image: quay.io/almalinuxorg/8-base

stages:
  - build
  - manifest

variables:
  TAG: latest

aarch64:
  stage: build
  tags:
    - aarch64
  script:
    - ./configure-mirror
    - ./configure-podman
    - podman login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
    - podman build --tag $CI_REGISTRY_IMAGE:${TAG}-aarch64 .
    - podman push $CI_REGISTRY_IMAGE:${TAG}-aarch64

x86_64:
  stage: build
  script:
    - ./configure-mirror
    - ./configure-podman
    - podman login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
    - podman build --tag $CI_REGISTRY_IMAGE:${TAG}-x86_64 .
    - podman push $CI_REGISTRY_IMAGE:${TAG}-x86_64

manifest:
  stage: manifest
  script:
    - ./configure-mirror
    - ./configure-podman
    - buildah login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
    - buildah manifest create localhost/multiarch:${TAG}
    - buildah manifest add localhost/multiarch:${TAG} docker://$CI_REGISTRY_IMAGE:${TAG}-aarch64
    - buildah manifest add localhost/multiarch:${TAG} docker://$CI_REGISTRY_IMAGE:${TAG}-x86_64
    - buildah manifest inspect localhost/multiarch:${TAG}
    - buildah manifest push -f v2s2 localhost/multiarch:${TAG} docker://$CI_REGISTRY_IMAGE:${TAG}

boot-aarch64:
  stage: build
  trigger:
    project: kraxel/ec2-init-scripts
    branch: boot-aarch64