2024-01-18 16:32:07 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
trigger:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Docker Build
|
2024-01-18 17:00:09 +01:00
|
|
|
image: docker:dind
|
2024-01-18 17:06:48 +01:00
|
|
|
commands:
|
|
|
|
- sleep 5 # give docker enough time to start
|
|
|
|
- echo $DOCKER_PASSWORD
|
2024-01-18 17:09:03 +01:00
|
|
|
- docker login -u silson -p $DOCKER_PASSWORD registry.hub.docker.com
|
2024-01-18 17:06:48 +01:00
|
|
|
- docker build -t silson/php-apache-rsvg .
|
|
|
|
- docker push --all-tags https://hub.docker.com/r/silson/php-apache-rsvg
|
2024-01-18 17:05:21 +01:00
|
|
|
environment:
|
2024-01-18 17:06:48 +01:00
|
|
|
DOCKER_PASSWORD:
|
2024-01-18 17:52:31 +01:00
|
|
|
from_secret: dockerhub_password
|
2024-01-18 17:00:09 +01:00
|
|
|
|
2024-01-18 17:05:21 +01:00
|
|
|
#settings:
|
|
|
|
# repo: silson/php-apache-rsvg
|
|
|
|
# username: silson
|
|
|
|
# password:
|
|
|
|
# from_secret: github_password
|