Use alternate way of building images

This commit is contained in:
drymer 2018-12-26 12:16:23 +01:00
parent dd271cdb7d
commit a87aff965b
Signed by: drymer
GPG Key ID: A307D64D5DDFDAAD
1 changed files with 9 additions and 7 deletions

View File

@ -3,14 +3,16 @@ pipeline:
build-web:
image: registry.daemons.it/hugo:latest
build-docker:
image: docker
commands:
- docker login -u $DOCKER_USER -p $DOCKER_PASSWORD $DOCKER_REGISTRY
- docker build -t $DOCKER_REGISTRY . --no-cache
- docker push $DOCKER_REGISTRY/baddaemons
image: plugins/docker
settings:
repo: r.daemons.it/hugo
registry: r.daemons.it
username:
from_secret: docker_username
password:
from_secret: docker_password
tags: latest
secrets: [docker_user, docker_password, docker_registry]
volumes:
- /var/run/docker.sock:/var/run/docker.sock
when:
event: push
ssh: