-
Notifications
You must be signed in to change notification settings - Fork 30
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: Introduce shared GitHub Actions #1451
chore: Introduce shared GitHub Actions #1451
Conversation
c91db95
to
c5c2559
Compare
22b0dd2
to
ef4b6e6
Compare
f405232
to
e203069
Compare
steps: | ||
- name: Define variables | ||
id: define-variables | ||
shell: bash | ||
run: | | ||
echo "k8s_version=${{ github.event.inputs.k8s_version || '1.28.7' }}" >> $GITHUB_OUTPUT | ||
echo "istio_version=1.20.3" >> $GITHUB_OUTPUT | ||
echo "k3d_version=5.6.0" >> $GITHUB_OUTPUT | ||
echo "cert_manager_version=1.13.3" >> $GITHUB_OUTPUT | ||
echo "klm_version_tag=PR-${{ github.event.pull_request.number }}" >> $GITHUB_OUTPUT | ||
echo "klm_image_repo=dev" >> $GITHUB_OUTPUT | ||
- name: Expose environment variables | ||
shell: bash | ||
run: | | ||
echo "GOSUMDB=off" >> $GITHUB_ENV |
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.
comment: I opted to have everything just needed in the test setup as "regular" vars, and to only export those things as env vars which are needed downstream by the tests.
echo "klm_version_tag=PR-${{ github.event.pull_request.number }}" >> $GITHUB_OUTPUT | ||
echo "klm_image_repo=dev" >> $GITHUB_OUTPUT |
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.
comment: these here used to be a conditional based on whether the job is running for a main
build or a PR
build. Since we removed the post main
build, I removed this conditional now.
80fcab5
to
a3a9cec
Compare
Description
Changes proposed in this pull request:
Related issue(s)
Comments
To ease the review allowing to compare the new workflow runs against the old ones, the oldtest-e2e.yaml
workflow is still there unchanged and the new workflow is intest-e2e-junk.yaml
. Once the changes are good to go, the old file will be updated with the new workflow and the separate junk file will be deleted.When reviewing, it is probably best to start fromtest-e2e-junk.yaml
and from there look into the used helper actions.Once this PR is merged, we can re-use the actions in watcher. Right now it is not possible because policies restrict using actions from forked repositories.