Commit 71c549aa authored by Kevin Daudt's avatar Kevin Daudt

Merge branch 'build-container' into 'master'

Initial implemention of a docker-cli container

See merge request !1
parents 61513a65 695af4a9
Pipeline #26 failed with stages
in 41 seconds
stages:
- build
- upload
- manifest
.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:lastest-s390x
- docker manifest push --purge alpinelinux/docker-cli:latest
FROM alpine:latest
RUN apk add --no-cache docker-cli
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