mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-23 02:11:01 +00:00
Add additional tag to next
image with commit sha (#1365)
Next image will have an additional tag of format `next-${truncated_commit_sha}`, where truncated_commit_sha is the first 10 characters of the commit sha (also, same for for the `next-alpine` image).
This commit is contained in:
parent
f65654c226
commit
a5e1714039
1 changed files with 6 additions and 6 deletions
|
@ -74,7 +74,7 @@ pipeline:
|
|||
repo: woodpeckerci/woodpecker-server
|
||||
dockerfile: docker/Dockerfile.server.multiarch
|
||||
platforms: *platforms_server
|
||||
tag: next
|
||||
tag: [next, "next-${CI_COMMIT_SHA:0:10}"]
|
||||
when:
|
||||
branch: ${CI_REPO_DEFAULT_BRANCH}
|
||||
event: push
|
||||
|
@ -87,7 +87,7 @@ pipeline:
|
|||
repo: woodpeckerci/woodpecker-server
|
||||
dockerfile: docker/Dockerfile.server.alpine.multiarch
|
||||
platforms: *platforms_alpine
|
||||
tag: next-alpine
|
||||
tag: [next-alpine, "next-${CI_COMMIT_SHA:0:10}-alpine"]
|
||||
when:
|
||||
branch: ${CI_REPO_DEFAULT_BRANCH}
|
||||
event: push
|
||||
|
@ -168,7 +168,7 @@ pipeline:
|
|||
repo: woodpeckerci/woodpecker-agent
|
||||
dockerfile: docker/Dockerfile.agent.multiarch
|
||||
platforms: *platforms_release
|
||||
tag: next
|
||||
tag: [next, "next-${CI_COMMIT_SHA:0:10}"]
|
||||
when:
|
||||
branch: ${CI_REPO_DEFAULT_BRANCH}
|
||||
event: push
|
||||
|
@ -181,7 +181,7 @@ pipeline:
|
|||
repo: woodpeckerci/woodpecker-agent
|
||||
dockerfile: docker/Dockerfile.agent.alpine.multiarch
|
||||
platforms: *platforms_alpine
|
||||
tag: next-alpine
|
||||
tag: [next-alpine, "next-${CI_COMMIT_SHA:0:10}-alpine"]
|
||||
when:
|
||||
branch: ${CI_REPO_DEFAULT_BRANCH}
|
||||
event: push
|
||||
|
@ -262,7 +262,7 @@ pipeline:
|
|||
repo: woodpeckerci/woodpecker-cli
|
||||
dockerfile: docker/Dockerfile.cli.multiarch
|
||||
platforms: *platforms_release
|
||||
tag: next
|
||||
tag: [next, "next-${CI_COMMIT_SHA:0:10}"]
|
||||
when:
|
||||
branch: ${CI_REPO_DEFAULT_BRANCH}
|
||||
event: push
|
||||
|
@ -275,7 +275,7 @@ pipeline:
|
|||
repo: woodpeckerci/woodpecker-cli
|
||||
dockerfile: docker/Dockerfile.cli.alpine.multiarch
|
||||
platforms: *platforms_alpine
|
||||
tag: next-alpine
|
||||
tag: [next-alpine, "next-${CI_COMMIT_SHA:0:10}-alpine"]
|
||||
when:
|
||||
branch: ${CI_REPO_DEFAULT_BRANCH}
|
||||
event: push
|
||||
|
|
Loading…
Reference in a new issue