Commit d018abb4 authored by Kevin Daudt's avatar Kevin Daudt

ci: include template for gitlab-ci

parent 8b135041
Pipeline #40 passed with stage
in 24 seconds
stages:
- build
- upload
- manifest
include:
- project: 'alpine/infra/gitlab-ci-templates'
ref: master
file: '/docker-image.yml'
.build:
stage: build
script:
- docker build -t docker-cli:latest-$ARCH .
build-s390x:
image: alpinelinux/docker-cli:latest-s390x
extends: .build
variables:
ARCH: s390x
tags:
- docker-alpine
- s390x
.upload:
stage: upload
only:
- master
script:
- docker tag docker-cli:latest-$ARCH alpinelinux/docker-cli:latest-$ARCH
- docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
- docker push alpinelinux/docker-cli:latest-$ARCH
upload-s390x:
image: alpinelinux/docker-cli:latest-s390x
extends: .upload
variables:
ARCH: s390x
tags:
- docker-alpine
- s390x
create-manifest:
image: alpinelinux/docker-cli:latest-s390x
stage: manifest
variables:
DOCKER_CLI_EXPERIMENTAL: enabled
only:
- master
tags:
- docker-alpine
- s390x
script:
- docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
- docker manifest create --amend alpinelinux/docker-cli:latest alpinelinux/docker-cli:latest-s390x
- docker manifest push --purge alpinelinux/docker-cli:latest
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment