mirror of
https://github.com/spritsail/alpine.git
synced 2024-11-14 13:06:23 +00:00
36 lines
879 B
YAML
36 lines
879 B
YAML
pipeline:
|
|
build:
|
|
image: spritsail/docker-build
|
|
volumes: [ '/var/run/docker.sock:/var/run/docker.sock' ]
|
|
repo: alpine-dev
|
|
build_args:
|
|
- ALPINE_TAG=${ALPINE_TAG%%,*}
|
|
|
|
test:
|
|
image: docker
|
|
volumes: [ '/var/run/docker.sock:/var/run/docker.sock' ]
|
|
commands:
|
|
- docker run --rm alpine-dev /bin/sh -xec 'apk --version'
|
|
|
|
publish:
|
|
image: spritsail/docker-publish
|
|
when: { branch: [ master ], event: [ push, tag, deployment ] }
|
|
volumes: [ '/var/run/docker.sock:/var/run/docker.sock' ]
|
|
secrets: [ docker_username, docker_password, microbadger_token ]
|
|
from: alpine-dev
|
|
repo: 'spritsail/alpine'
|
|
tags: ${ALPINE_TAG}
|
|
|
|
notify:
|
|
image: spritsail/notify
|
|
when: { status: [ success, failure ] }
|
|
secrets: [ webhook_url, notify_token ]
|
|
|
|
matrix:
|
|
ALPINE_TAG:
|
|
- 3.4
|
|
- 3.5
|
|
- 3.6
|
|
- 3.7,latest
|
|
- edge
|