-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add
azcopy
updatecli manifest (#205)
* chore: add `azcopy` updatecli manifest * Apply suggestions from code review Co-authored-by: Damien Duportal <damien.duportal@gmail.com> --------- Co-authored-by: Damien Duportal <damien.duportal@gmail.com>
- Loading branch information
1 parent
25d70fd
commit 8b9be51
Showing
1 changed file
with
72 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
--- | ||
name: Bump `azcopy` version | ||
|
||
scms: | ||
default: | ||
kind: github | ||
spec: | ||
user: "{{ .github.user }}" | ||
email: "{{ .github.email }}" | ||
owner: "{{ .github.owner }}" | ||
repository: "{{ .github.repository }}" | ||
token: "{{ requiredEnv .github.token }}" | ||
username: "{{ .github.username }}" | ||
branch: "{{ .github.branch }}" | ||
|
||
sources: | ||
lastReleaseVersion: | ||
kind: shell | ||
name: Get the latest `azcopy` (full) version | ||
spec: | ||
command: bash -c 'basename "$(dirname "$(curl https://aka.ms/downloadazcopy-v10-linux --write-out "%{redirect_url}" --output /dev/null --silent --fail --show-error)" )"' | ||
transformers: | ||
- trimprefix: 'release-' | ||
|
||
conditions: | ||
testDockerfileArgAzCliVersion: | ||
name: "Does the Dockerfile have an ARG instruction which key is AZCOPY_VERSION?" | ||
kind: dockerfile | ||
disablesourceinput: true | ||
spec: | ||
file: Dockerfile | ||
instruction: | ||
keyword: "ARG" | ||
matcher: "AZCOPY_VERSION" | ||
testCstAzCliVersion: | ||
name: "Does the test harness checks for a label io.jenkins-infra.tools.azcopy.version?" | ||
kind: yaml | ||
disablesourceinput: true | ||
spec: | ||
file: "cst.yml" | ||
key: "$.metadataTest.labels[6].key" | ||
value: io.jenkins-infra.tools.azcopy.version | ||
|
||
targets: | ||
updateCstVersion: | ||
name: "Update the label io.jenkins-infra.tools.azcopy.version in the test harness" | ||
sourceid: lastReleaseVersion | ||
kind: yaml | ||
spec: | ||
file: "cst.yml" | ||
key: "$.metadataTest.labels[6].value" | ||
scmid: default | ||
updateDockerfileArgVersion: | ||
name: "Update the value of ARG AZCOPY_VERSION in the Dockerfile" | ||
sourceid: lastReleaseVersion | ||
kind: dockerfile | ||
spec: | ||
file: Dockerfile | ||
instruction: | ||
keyword: "ARG" | ||
matcher: "AZCOPY_VERSION" | ||
scmid: default | ||
|
||
actions: | ||
default: | ||
kind: github/pullrequest | ||
title: Bump azcopy version to {{ source "lastReleaseVersion" }} | ||
scmid: default | ||
spec: | ||
labels: | ||
- enhancement | ||
- azcopy |