Skip to content

Commit

Permalink
Modify workflow to ensure VERSION is correct (#1131)
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Pryc <mpryc@redhat.com>
  • Loading branch information
mpryc committed Apr 22, 2024
1 parent 778192f commit 95d900d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cd.yml
Expand Up @@ -47,7 +47,7 @@ jobs:
else
echo "tags=$(echo stable,latest,${{ github.sha }},v$CURRENT_CHART_VERSION)" >> "$GITHUB_OUTPUT"
echo is_release=true >> "$GITHUB_OUTPUT"
export CURRENT_OPERATOR_VERSION="$(grep "VERSION ?= " pelorus-operator/Makefile | cut -c 12-)"
export CURRENT_OPERATOR_VERSION="$(grep "^VERSION ?= " pelorus-operator/Makefile | cut -c 12-)"
echo version=$CURRENT_OPERATOR_VERSION >> "$GITHUB_OUTPUT"
fi
else
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-images.yml
Expand Up @@ -78,7 +78,7 @@ jobs:
TEST_VERSION: pr${{ needs.setup.outputs.pr_number }}-${{ needs.setup.outputs.commit_hash }}
working-directory: ./pelorus-operator
run: |
export CURRENT_OPERATOR_VERSION="$(grep "VERSION ?= " Makefile | cut -c 12-)"
export CURRENT_OPERATOR_VERSION="$(grep "^VERSION ?= " Makefile | cut -c 12-)"
export CURRENT_CHART_VERSION="$(grep '^version: ' helm-charts/pelorus/Chart.yaml | cut -c 10-)"
export DEFAULT_OPERATOR_IMAGE="${{ env.REPOSITORY }}/pelorus-operator:$CURRENT_OPERATOR_VERSION"
export TEST_OPERATOR_IMAGE="${{ env.REPOSITORY }}/rc-pelorus-operator:${{ env.TEST_VERSION }}"
Expand Down

0 comments on commit 95d900d

Please sign in to comment.