aboutsummaryrefslogtreecommitdiffstats
path: root/.gitlab-ci.yml
blob: e747f16b2339e98f1f5118b3b51e446e221ccad0 (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
image: docker.io/centos:8

stages:
  - build
  - manifest

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

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

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