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

Only sync the job's images #1425

Merged
merged 2 commits into from
Sep 12, 2024
Merged

Only sync the job's images #1425

merged 2 commits into from
Sep 12, 2024

Conversation

filiptronicek
Copy link
Member

Description

Changes things around to not sync anything else from GAR to Dockerhub besides the images that were built in the current job.

Related Issue(s)

Contributes to ENT-749

Addresses https://gitpod.slack.com/archives/C01RC164G48/p1726069432742589?thread_ts=1725887846.208599&cid=C01RC164G48

@filiptronicek filiptronicek requested review from a team as code owners September 12, 2024 12:45
Comment on lines -94 to -97
# limit what we promote to latest for the current year only
current_year=$(date +%Y)
current_month=""
sed -i "s/CURRENT_YEAR/$current_year/g; s/CURRENT_MONTH/$current_month/g" "${GITHUB_WORKSPACE}/.github/promote-images.yml"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This here wasn't needed, as we only used the keys and not their values in the $IMAGES below

Copy link
Collaborator

@kylos101 kylos101 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @filiptronicek , nice work! You 🪨!! :shipit:

@filiptronicek filiptronicek enabled auto-merge (squash) September 12, 2024 12:53
@filiptronicek filiptronicek merged commit c0fdcdf into main Sep 12, 2024
4 checks passed
@filiptronicek filiptronicek deleted the ft/only-sync-current-imgs branch September 12, 2024 15:50
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