Try yaml anchors
This commit is contained in:
parent
4a9e6e5077
commit
3daaf01c98
15
.drone.yml
15
.drone.yml
@ -7,19 +7,22 @@ name: Build the builder
|
|||||||
trigger:
|
trigger:
|
||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
environment:
|
|
||||||
BUILDER_VERSION: 555262114ea81f6f286010474527f419b56d33a3
|
image-anchor: &image-anchor
|
||||||
|
image: git.badhouseplants.net/badhouseplants/badhouseplants-builder:555262114ea81f6f286010474527f419b56d33a3
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Build and push the docker image
|
- <<: *image-anchor
|
||||||
image: git.badhouseplants.net/badhouseplants/badhouseplants-builder:${BUILDER_VERSION}
|
name: Build and push the docker image
|
||||||
privileged: true
|
privileged: true
|
||||||
environment:
|
environment:
|
||||||
GITEA_TOKEN:
|
GITEA_TOKEN:
|
||||||
from_secret: GITEA_TOKEN
|
from_secret: GITEA_TOKEN
|
||||||
commands:
|
commands:
|
||||||
- build-container
|
- build-container
|
||||||
- name: Cleanup registry
|
|
||||||
image: git.badhouseplants.net/badhouseplants/badhouseplants-builder:${BUILDER_VERSION}
|
- <<: *image-anchor
|
||||||
|
name: Cleanup registry
|
||||||
environment:
|
environment:
|
||||||
GITEA_TOKEN:
|
GITEA_TOKEN:
|
||||||
from_secret: GITEA_TOKEN
|
from_secret: GITEA_TOKEN
|
||||||
|
Loading…
Reference in New Issue
Block a user