Skip to content

Commit

Permalink
Merge pull request #336 from dduportal/chore/updatecli/fix-asciidocto…
Browse files Browse the repository at this point in the history
…r-diagram

chore(updatecli) fix the asciidocotr-diagram manifest to use git tag and check for ruby gem
  • Loading branch information
dduportal authored Feb 13, 2023
2 parents 04e13b6 + ce1e960 commit 2e72a81
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions updatecli/updatecli.d/asciidoctor-diagram.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,30 @@ scms:
token: "{{ requiredEnv .github.token }}"
username: "{{ .github.username }}"
branch: "{{ .github.branch }}"
asciidoctor-diagram:
kind: git
spec:
url: https://github.com/asciidoctor/asciidoctor-diagram
branch: master

sources:
latestVersion:
kind: githubrelease
name: "Get the latest Asciidoctor-Diagram version"
kind: gittag
name: "Get the latest Asciidoctor-Diagram version from latest git tag (no GitHub release)"
scmid: asciidoctor-diagram
spec:
owner: "asciidoctor"
repository: "asciidoctor-diagram"
token: "{{ requiredEnv .github.token }}"
username: "{{ .github.username }}"
versionfilter:
kind: latest
transformers:
- trimprefix: "v"

conditions:
checkIfGemIsPublished:
name: "Check if the Gem is published"
kind: shell
disablesourceinput: true
spec:
command: curl --fail --location --output /dev/null https://rubygems.org/downloads/asciidoctor-diagram-{{ source "latestVersion" }}.gem
testDockerfileArgVersion:
name: "Does the Dockerfile have an ARG instruction which key is asciidoctor_diagram_version?"
kind: dockerfile
Expand Down Expand Up @@ -86,5 +94,5 @@ actions:
title: Bump Asciidoctor-Diagram version {{ source "latestVersion" }}
spec:
labels:
- chore
- dependencies
- asciidoctor-diagram

0 comments on commit 2e72a81

Please sign in to comment.