29 lines
805 B
YAML
29 lines
805 B
YAML
kind: pipeline
|
|
name: default
|
|
|
|
steps:
|
|
- name: fetch
|
|
image: alpine/git
|
|
commands:
|
|
- git fetch --tags
|
|
|
|
- name: build
|
|
image: kamikazechaser/docker-build:latest
|
|
environment:
|
|
DOCKER_BUILDKIT: 1
|
|
COMPOSE_DOCKER_CLI_BUILD: 1
|
|
IMAGE_BASE_URL: docker.grassecon.net/cic-stack
|
|
PASSWORD:
|
|
from_secret: docker_password
|
|
volumes:
|
|
- name: docker_sock
|
|
path: /var/run/docker.sock
|
|
commands:
|
|
- echo $PASSWORD | docker login docker.grassecon.net --username ci --password-stdin
|
|
- TAG=$(git describe --tags $(git rev-list --tags --max-count=1)) docker-compose -f docker-compose.build.yml build --progress plain
|
|
- docker-compose -f docker-compose.build.yml push
|
|
volumes:
|
|
- name: docker_sock
|
|
host:
|
|
path: /var/run/docker.sock
|