2023-08-19 21:25:33 +12:00
|
|
|
variables:
|
2023-08-19 22:10:53 +12:00
|
|
|
- &platforms 'linux/amd64'
|
2023-08-19 21:25:33 +12:00
|
|
|
- &docker_creds
|
|
|
|
|
username: ${CI_REPO_OWNER}
|
|
|
|
|
password:
|
|
|
|
|
from_secret: docker_password
|
|
|
|
|
|
|
|
|
|
steps:
|
2023-08-19 21:33:25 +12:00
|
|
|
build-and-publish:
|
2023-08-19 21:25:33 +12:00
|
|
|
image: woodpeckerci/plugin-docker-buildx
|
|
|
|
|
pull: true
|
|
|
|
|
group: docker
|
|
|
|
|
settings:
|
|
|
|
|
<<: *docker_creds
|
2023-08-19 21:33:25 +12:00
|
|
|
repo: "${CI_REPO_OWNER}/ansible-molecule"
|
2023-08-19 21:25:33 +12:00
|
|
|
dockerfile: Dockerfile
|
|
|
|
|
platforms: *platforms
|
|
|
|
|
tag: latest
|
|
|
|
|
when:
|
|
|
|
|
branch: ${CI_REPO_DEFAULT_BRANCH}
|
|
|
|
|
event:
|
|
|
|
|
- push
|
|
|
|
|
- manual
|