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

Reuse docker images for validate job #1901

Merged
merged 1 commit into from
May 10, 2024

Conversation

JasonGross
Copy link
Collaborator

@JasonGross JasonGross commented May 9, 2024

Fixes #1900
(hopefully; the CI doesn't test the validate job)

Comment on lines +142 to +151
if [ -z "${COQ_IMAGE}" ]; then
echo "::warning::.coqimage is empty, parsing docker images for coqorg/coq:.*${{ matrix.env.DOCKER_COQ_VERSION }}.*"
echo "::group::docker images"
docker images
echo "::endgroup::"
echo "::group::docker images --format '{{.Repository}}:{{.Tag}}'"
docker images --filter "reference=coqorg/coq*" --format "{{.Repository}}:{{.Tag}}"
echo "::endgroup::"
COQ_IMAGE="$(docker images --filter "reference=coqorg/coq*" --format "{{.Repository}}:{{.Tag}}" | grep -o 'coqorg/coq:.*${{ matrix.env.DOCKER_COQ_VERSION }}.*')"
fi
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Note that this block can be removed once coq-community/docker-coq-action#89 is merged

@JasonGross JasonGross enabled auto-merge (squash) May 9, 2024 23:09
@JasonGross JasonGross merged commit ca96927 into mit-plv:master May 10, 2024
40 checks passed
@JasonGross JasonGross deleted the better-docker branch May 10, 2024 06:23
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.

Use the same docker image in validate and build docker jobs on master
1 participant