ContainerImage.PackerExtended/.drone.yml
djpbessems 6810eb0cfa
All checks were successful
continuous-integration/drone/push Build is passing
Add credentials to upstream source
2021-01-04 11:09:50 +01:00

52 lines
1013 B
YAML

kind: pipeline
type: kubernetes
name: Harbor
steps:
- name: build & publish
image: plugins/docker
context: .
settings:
repo: bv11-cr01.bessems.eu/library/packer-extended
registry: bv11-cr01.bessems.eu
tags: latest
mtu: 1450
username:
from_secret: harbor_username
password:
from_secret: harbor_password
build_args_from_env:
- REPO_USERNAME
- REPO_PASSWORD
environment:
REPO_USERNAME:
from_secret: repo_username
REPO_PASSWORD:
from_secret: repo_password
---
kind: pipeline
type: kubernetes
name: Dockerhub
steps:
- name: build & publish
image: plugins/docker
context: .
settings:
repo: djpbessems/packer-extended
tags: latest
mtu: 1450
username:
from_secret: docker_username
password:
from_secret: docker_password
build_args_from_env:
- REPO_USERNAME
- REPO_PASSWORD
environment:
REPO_USERNAME:
from_secret: repo_username
REPO_PASSWORD:
from_secret: repo_password