2024-04-03 21:44:35 +02:00
|
|
|
kind: pipeline
|
|
|
|
|
type: docker
|
2024-04-03 21:50:45 +02:00
|
|
|
name: build & publish image
|
2024-04-03 21:44:35 +02:00
|
|
|
|
|
|
|
|
steps:
|
2024-04-03 21:50:45 +02:00
|
|
|
- name: build & publish
|
2024-04-04 07:58:23 +02:00
|
|
|
image: docker:20.10.14-dind
|
|
|
|
|
environment:
|
|
|
|
|
docker_username:
|
2024-04-03 21:50:45 +02:00
|
|
|
from_secret: zipek_registry_username
|
2024-04-04 07:58:23 +02:00
|
|
|
docker_password:
|
2024-04-03 21:50:45 +02:00
|
|
|
from_secret: zipek_registry_password
|
2024-04-04 07:58:23 +02:00
|
|
|
commands:
|
|
|
|
|
- echo $docker_password | docker login containers.zipek.cz --username $docker_username --password-stdin
|
|
|
|
|
- docker build . -t containers.zipek.cz/kamen/graphicek:latest --cache_from type=registry,ref=containers.zipek.cz/kamen/graphicek-build-cache:latest --cache_to type=registry,ref=containers.zipek.cz/kamen/graphicek-build-cache:latest,mode=max
|
|
|
|
|
- docker push containers.zipek.cz/kamen/graphicek:latest
|