.ppc64-ci.yml 844 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
stages:
  - build

variables:
  CONTAINER_IMAGE_BASE: registry.gitlab.haskell.org/$CI_PROJECT_PATH

.build:
  stage: build
  only:
   - master
   - merge_requests
  before_script:
Peter Trommler's avatar
Peter Trommler committed
13
    - podman info
14 15
  script:
    - |
Peter Trommler's avatar
Peter Trommler committed
16
      CONTAINER_IMAGE="$CONTAINER_IMAGE_BASE/$IMAGE"
Peter Trommler's avatar
Peter Trommler committed
17 18
      podman login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
      podman pull $CONTAINER_IMAGE:latest || true
Peter Trommler's avatar
Peter Trommler committed
19
      podman build --device /dev/fuse:rw --cache-from $CONTAINER_IMAGE:latest --tag $CONTAINER_IMAGE:$CI_COMMIT_SHA --tag $CONTAINER_IMAGE:latest $IMAGE
Peter Trommler's avatar
Peter Trommler committed
20
      if [ -z "$CI_MERGE_REQUEST_ID" ]; then
Peter Trommler's avatar
Peter Trommler committed
21 22
        podman push $CONTAINER_IMAGE:$CI_COMMIT_SHA
        podman push $CONTAINER_IMAGE:latest
Peter Trommler's avatar
Peter Trommler committed
23
      fi
24

Peter Trommler's avatar
Peter Trommler committed
25
build-ppc64le-linux-opensuse151:
Peter Trommler's avatar
Peter Trommler committed
26
  extends: .build
Peter Trommler's avatar
Peter Trommler committed
27 28
  variables:
    IMAGE : ppc64le-linux-opensuse151
29 30
  tags:
    - podman
Peter Trommler's avatar
Peter Trommler committed
31
    - ppc64le-linux