Woodpecker CI Develop: Also tag images using commit sha
With the commit sha being present, `tags` now has to be a list instead of an array, otherwise Woodpecker raises a yaml compiler warning: yaml: line 17: did not find expected ',' or ']'
This commit is contained in:
parent
13d6246ed9
commit
f00c13602d
2 changed files with 12 additions and 3 deletions
|
|
@ -15,7 +15,10 @@ steps:
|
|||
registry: "git.fluffytail.org"
|
||||
image: "pleroma-test/pleroma"
|
||||
architectures: [amd64, arm64]
|
||||
tags: [latest, develop]
|
||||
tags:
|
||||
- latest
|
||||
- develop
|
||||
- ${CI_COMMIT_SHA}
|
||||
username:
|
||||
from_secret: pleroma-ci-user
|
||||
password:
|
||||
|
|
|
|||
|
|
@ -33,7 +33,10 @@ steps:
|
|||
- evaluate: platform == "linux/amd64"
|
||||
settings:
|
||||
<<: *docker_variables
|
||||
tags: [latest-amd64, develop-amd64]
|
||||
tags:
|
||||
- latest-amd64
|
||||
- develop-amd64
|
||||
- ${CI_COMMIT_SHA}-amd64
|
||||
|
||||
docker-develop-arm64:
|
||||
image: woodpeckerci/plugin-kaniko:2.3.1
|
||||
|
|
@ -41,4 +44,7 @@ steps:
|
|||
- evaluate: platform == "linux/arm64"
|
||||
settings:
|
||||
<<: *docker_variables
|
||||
tags: [latest-arm64, develop-arm64]
|
||||
tags:
|
||||
- latest-arm64
|
||||
- develop-arm64
|
||||
- ${CI_COMMIT_SHA}-arm64
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue