Skip to content
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

fix(cicd): make pull request pipeline work as expected for push to main #2730

Merged
merged 1 commit into from
Jun 14, 2023

Conversation

schoren
Copy link
Contributor

@schoren schoren commented Jun 14, 2023

This PR updates the pull request pipeline so it can work as expected when triggered both by a PR or by a push to main.

When running on main, the images were exported with the tag kubeshop/tracetest:pr-. This is because the pipeline relies on the PR number to build that tag. The problem is that sometimes the cache can be picked by a PR that will try to run images with the tag kubeshop/tracetest:pr-{the pr number}. Since the image is exported with the wrong tag, the docker stack cannot start and everything fails.

This happens by removing the references to PR specific info, like PR number, and replacing it by the sha of whatever commit triggered the action.

@schoren schoren changed the title test new pipeline settings fix(cicd): make pull request pipeline work as expected for push to main Jun 14, 2023
test

test

test

test

test

test

test
@schoren schoren force-pushed the fix-pipeline-image-tag branch from 4987c80 to c29914f Compare June 14, 2023 01:04
@schoren schoren marked this pull request as ready for review June 14, 2023 01:04
@schoren schoren requested a review from mathnogueira June 14, 2023 01:04
@schoren schoren merged commit 75d7384 into main Jun 14, 2023
@schoren schoren deleted the fix-pipeline-image-tag branch June 14, 2023 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants