ci-fairy-ci.yml 1.19 KB
Newer Older
Peter Hutterer's avatar
Peter Hutterer committed
1 2 3 4 5 6 7
include:
  - local: '/templates/alpine.yml'

stages:
  - base image build
  - image build

8
.local buildah image:
9
  image: $CI_REGISTRY_IMAGE/x86_64/buildah:2020-12-18.2
10

Peter Hutterer's avatar
Peter Hutterer committed
11 12 13 14 15 16
# The ci-fairy base image. We build a base image that we can bump independently
# via the tag, ci-fairy itself gets layered on top with each commit.
# This image is private to ci-templates.
ci-fairy-base-image:
  extends:
    - .fdo.container-build@alpine@x86_64
17
    - .local buildah image
Peter Hutterer's avatar
Peter Hutterer committed
18 19 20 21 22 23 24 25
  stage: base image build
  variables:
    FDO_DISTRIBUTION_PACKAGES: 'git python3 py-pip bash'
    FDO_DISTRIBUTION_TAG: ci-fairy-base-image-2020-11-03
    FDO_REPO_SUFFIX: ci-fairy

.ci-fairy-tag:
  variables:
26
    FDO_DISTRIBUTION_TAG: sha256-41ee4d1ca15ea24c7d171a573fab18538561e526253b742b8172dd7a6412035f
Peter Hutterer's avatar
Peter Hutterer committed
27 28 29 30 31 32 33

# The actual ci-fairy image with ci-fairy installed
# This image uses the sha of the ci-fairy script itself as tag.
ci-fairy-image:
  extends:
    - .ci-fairy-tag
    - .fdo.container-build@alpine@x86_64
34
    - .local buildah image
Peter Hutterer's avatar
Peter Hutterer committed
35 36 37 38 39 40 41
  stage: image build
  variables:
    FDO_BASE_IMAGE: $CI_REGISTRY_IMAGE/ci-fairy:ci-fairy-base-image-2020-11-03
    FDO_DISTRIBUTION_EXEC: 'pip install .'
    FDO_REPO_SUFFIX: ci-fairy
  needs:
    - ci-fairy-base-image