New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(action): Prepare containers release for v4 #3597
Conversation
PROWLER_VERSION_MAJOR="${PROWLER_VERSION%%.*}" | ||
echo "PROWLER_VERSION_MAJOR=${PROWLER_VERSION_MAJOR}" >> "${GITHUB_ENV}" | ||
|
||
case ${PROWLER_VERSION_MAJOR} in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is returning the same in both case statements
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or it is just a way to set the major for just the v3 and v4?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's just prepared for the v4 release, as you can see the commented code will be uncommented for the v4 release:
3)
# TODO: update it for v3 and v4
# echo "LATEST=v3-latest" >> "${GITHUB_ENV}"
# echo "STABLE_TAG=v3-stable" >> "${GITHUB_ENV}"
echo "LATEST=latest" >> "${GITHUB_ENV}"
echo "STABLE_TAG=stable" >> "${GITHUB_ENV}"
;;
# TODO: uncomment for v3 and v4
# 4)
# echo "LATEST=latest" >> "${GITHUB_ENV}"
# echo "STABLE_TAG=stable" >> "${GITHUB_ENV}"
# ;;
if: github.event_name == 'push' | ||
|
||
- name: Dispatch event (latest) | ||
if: github.event_name == 'push' && ${{ env. PROWLER_VERSION_MAJOR }} == '3' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is gonna be available only for version 3?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At least for now, we haven't tested it with v4 yet.
Context
For the upcoming Prowler v4 we need to be able to handle different paths for both v3 and v4 while releasing packages or pushing latest changes.
Description
License
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.