From acb53c1e3457c5f1bf050371f541558690b67b31 Mon Sep 17 00:00:00 2001 From: Daniel Rudolf Date: Sat, 7 Dec 2024 17:24:58 +0100 Subject: [PATCH] Update CI to meet latest standards --- .github/workflows/container-auto-update.yml | 2 +- .github/workflows/container-publish.yml | 2 +- tags.sh | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/container-auto-update.yml b/.github/workflows/container-auto-update.yml index 9e94a0a..2540e7c 100644 --- a/.github/workflows/container-auto-update.yml +++ b/.github/workflows/container-auto-update.yml @@ -34,7 +34,7 @@ jobs: echo "CI_TOOLS_PATH=$CI_TOOLS_PATH" | tee -a "$GITHUB_ENV" - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Log into container registry ${{ env.REGISTRY }} uses: redhat-actions/podman-login@v1 diff --git a/.github/workflows/container-publish.yml b/.github/workflows/container-publish.yml index 0607db7..ea0faac 100644 --- a/.github/workflows/container-publish.yml +++ b/.github/workflows/container-publish.yml @@ -34,7 +34,7 @@ jobs: echo "CI_TOOLS_PATH=$CI_TOOLS_PATH" | tee -a "$GITHUB_ENV" - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Log into container registry ${{ env.REGISTRY }} uses: redhat-actions/podman-login@v1 diff --git a/tags.sh b/tags.sh index edade66..0e7c207 100755 --- a/tags.sh +++ b/tags.sh @@ -55,6 +55,7 @@ elif ! [[ "$VERSION" =~ ^([0-9]+)\.([0-9]+)\.([0-9]+)([+~-]|$) ]]; then exit 1 fi +VERSION_FULL="$VERSION" VERSION="${BASH_REMATCH[1]}.${BASH_REMATCH[2]}.${BASH_REMATCH[3]}" VERSION_MINOR="${BASH_REMATCH[1]}.${BASH_REMATCH[2]}" VERSION_MAJOR="${BASH_REMATCH[1]}" @@ -69,5 +70,5 @@ TAGS=( "latest" ) -printf 'VERSION="%s"\n' "$VERSION" +printf 'VERSION="%s"\n' "$VERSION_FULL" printf 'TAGS="%s"\n' "${TAGS[*]}"