Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add azcopy updatecli manifest #205

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 72 additions & 0 deletions updatecli/updatecli.d/azcopy.yml
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"
lemeurherve marked this conversation as resolved.
Show resolved Hide resolved
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"
lemeurherve marked this conversation as resolved.
Show resolved Hide resolved
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