Skip to content

Commit

Permalink
Update CI to meet latest standards
Browse files Browse the repository at this point in the history
  • Loading branch information
PhrozenByte committed Dec 7, 2024
1 parent e30b3ad commit 465fe53
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/container-auto-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
echo "CI_TOOLS_PATH=$CI_TOOLS_PATH" | tee -a "$GITHUB_ENV"
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ env.BUILD_REF }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/container-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,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
Expand Down
4 changes: 3 additions & 1 deletion tags.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ 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]}"

Expand Down Expand Up @@ -86,5 +88,5 @@ if [ "$VERSION" == "$(ls_versions "$VERSION_MINOR" | head -n 1)" ]; then
fi

printf 'MILESTONE="%s"\n' "$VERSION_MINOR"
printf 'VERSION="%s"\n' "$VERSION"
printf 'VERSION="%s"\n' "$VERSION_FULL"
printf 'TAGS="%s"\n' "${TAGS[*]}"

0 comments on commit 465fe53

Please sign in to comment.