diff --git a/konstraint/Dockerfile b/konstraint/Dockerfile index e7261fde6..88ed7dd2a 100644 --- a/konstraint/Dockerfile +++ b/konstraint/Dockerfile @@ -1,6 +1,6 @@ FROM alpine:3.19 ARG TARGETARCH -ARG KONSTRAINT_VERSION=0.38.0 +ARG KONSTRAINT_VERSION=0.43.0 LABEL version="${KONSTRAINT_VERSION}" LABEL maintainer="sakamoto@chatwork.com" diff --git a/konstraint/goss/goss.yaml b/konstraint/goss/goss.yaml index 58157b78c..7567a466b 100644 --- a/konstraint/goss/goss.yaml +++ b/konstraint/goss/goss.yaml @@ -6,4 +6,4 @@ command: /usr/local/bin/konstraint --version: exit-status: 0 stdout: - - v0.38.0 + - v0.43.0 diff --git a/konstraint/variant.lock b/konstraint/variant.lock deleted file mode 100644 index 719932445..000000000 --- a/konstraint/variant.lock +++ /dev/null @@ -1,25 +0,0 @@ -dependencies: - konstraint: - version: 0.38.0 - previousVersion: 0.37.0 - versions: - - 0.23.0 - - 0.24.0 - - 0.25.0 - - 0.25.1 - - 0.26.0 - - 0.26.1 - - 0.27.0 - - 0.27.1 - - 0.28.0 - - 0.29.0 - - 0.29.1 - - 0.30.0 - - 0.31.0 - - 0.32.0 - - 0.33.0 - - 0.34.0 - - 0.35.0 - - 0.36.0 - - 0.37.0 - - 0.38.0 diff --git a/konstraint/variant.mod b/konstraint/variant.mod index 36934c848..3a91385bb 100644 --- a/konstraint/variant.mod +++ b/konstraint/variant.mod @@ -1,15 +1,18 @@ provisioners: - textReplace: + regexpReplace: Dockerfile: - from: "ARG KONSTRAINT_VERSION={{ .konstraint.previousVersion }}" - to: "ARG KONSTRAINT_VERSION={{ .konstraint.version }}" + from: "(ARG KONSTRAINT_VERSION=)(\\S+)(\\s*)" + to: "${1}{{.Dependencies.konstraint.version}}${3}" goss/goss.yaml: - from: "- v{{ .konstraint.previousVersion }}" - to: "- v{{ .konstraint.version }}" + from: '(?m)(.+konstraint --version:\n.*\n\s*stdout:\n\s*-\s*v)([\d\.]+)(\s*)' + to: '${1}{{.Dependencies.konstraint.version}}${3}' dependencies: konstraint: releasesFrom: - githubTags: - source: plexsystems/konstraint + exec: + command: sh + args: + - -c + - "curl -s https://api.github.com/repos/plexsystems/konstraint/tags | jq -r '.[].name' | sort -V | tr -d 'v'" version: "> 0.0.0"