---
format_version: 2
common:
docker-images-stages-alias: &docker-images-stages-alias
- build-docker-image:
jobs:
build:
resources:
- docker
tasks:
- exec:
command: bash
arguments:
- -c
- test -e $DOCKERFILE_NAME
- exec:
command: bash
arguments:
- -c
- docker build --force-rm -f $DOCKERFILE_NAME -t test/env .
- exec:
command: bash
arguments:
- -c
- docker images
- exec:
command: bash
arguments:
- -c
- docker tag test/env localhost:5000/test-machine
- exec:
command: bash
arguments:
- -c
- docker push localhost:5000/test-machine
pipelines:
docker-build:
group: docker-images
label_template: "${adapter-git}"
lock_behavior: unlockWhenFinished
materials:
adapter-testy:
git: git@:event-management/automated-tests.git
branch: master
shallow_clone: true
auto_update: false
destination: automated-tests
adapter-git:
git: git@:bormarek/gocd.git
branch: master
shallow_clone: true
auto_update: true
destination: gocd
environment_variables:
DOCKERFILE_NAME: Dockerfile_alpine
stages: *docker-images-stages-alias
poniedziałek, 13 maja 2019
first gocd pipeline - it should look like that
Subskrybuj:
Komentarze do posta (Atom)
Brak komentarzy:
Prześlij komentarz