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: use additional tag on push #68

Merged
merged 2 commits into from
Aug 14, 2024
Merged

Conversation

kmuehlbauer
Copy link
Collaborator

@openradar/erad2024-team

To keep the pythia-binder up to date, we need to tag the build image with some new tag and use this tag in the binder/Dockerfile. To be on the safe side, we can apply a tag which corresponds to the PR number.

Copy link

github-actions bot commented Aug 14, 2024

👋 Thanks for opening this PR! The Cookbook will be automatically built with GitHub Actions. To see the status of your deployment, click below.
🔍 Git commit SHA: ff8d600
✅ Deployment Preview URL: https://openradar.github.io/erad2024/_preview/68

@@ -27,6 +27,9 @@ on:
permissions:
contents: read

env:
DOCKER_TAG: pr_68
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Enter the number of the current pull request.

@@ -24,6 +24,9 @@ on:
default: 'true'
type: string # had a lot of trouble with boolean types, see https://github.com/actions/runner/issues/1483

env:
DOCKER_TAG: pr_68
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Same here.

@@ -1 +1 @@
FROM ghcr.io/openradar/erad2024:d6ee5b14f782
FROM ghcr.io/openradar/erad2024:pr_68
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Same here. This will make sure, that the image which is build on push to main is used in subsequent pythia-binder instances.

@kmuehlbauer
Copy link
Collaborator Author

On building the pullrequest image, we see that the tagging worked.

Run docker image ls -a
REPOSITORY                   TAG                                IMAGE ID       CREATED              SIZE
ghcr.io/openradar/erad2024   fed0b9008876                       293277c179e6   1 second ago         6.66GB
ghcr.io/openradar/erad2024   latest                             293277c179e6   1 second ago         6.66GB
ghcr.io/openradar/erad2024   pr_68                              293277c179e6   1 second ago         6.66GB

Let's check this on push.

@kmuehlbauer kmuehlbauer merged commit ee49324 into openradar:main Aug 14, 2024
2 checks passed
@kmuehlbauer kmuehlbauer deleted the tag-on-pr branch August 14, 2024 06:39
github-actions bot pushed a commit that referenced this pull request Aug 14, 2024
@kmuehlbauer kmuehlbauer mentioned this pull request Aug 30, 2024
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.

1 participant