27 lines
592 B
YAML
27 lines
592 B
YAML
---
|
|
|
|
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
trigger:
|
|
branch:
|
|
- master
|
|
|
|
steps:
|
|
- name: Docker Build
|
|
image: docker:dind
|
|
commands:
|
|
- sleep 5 # give docker enough time to start
|
|
- echo $DOCKER_PASSWORD
|
|
- docker login -u silson -p $DOCKER_PASSWORD registry.hub.docker.com
|
|
- docker build -t silson/php-apache-rsvg .
|
|
- docker push --all-tags https://hub.docker.com/r/silson/php-apache-rsvg
|
|
environment:
|
|
DOCKER_PASSWORD:
|
|
from_secret: github_password
|
|
|
|
#settings:
|
|
# repo: silson/php-apache-rsvg
|
|
# username: silson
|
|
# password:
|
|
# from_secret: github_password
|