Skip to content
This repository was archived by the owner on Jul 25, 2024. It is now read-only.

Validate images build without pushing on PR #19

Merged
merged 2 commits into from
Mar 22, 2022
Merged

Validate images build without pushing on PR #19

merged 2 commits into from
Mar 22, 2022

Conversation

cedric-anne
Copy link
Contributor

With this proposal, images build would be done when a PR is opened, in order to be able to validate that proposed changes are not breaking images build.

Workflow would also be trigerred when corresponding workflow configuration file would be changed.

@jdecool
Copy link
Member

jdecool commented Mar 22, 2022

Hi @cedric-anne ,

Thanks for this PR.

It seems that the CI run without the correct credentials.
I need to investigate about how we can fix that.

@cedric-anne
Copy link
Contributor Author

Indeed, I had to put my credentials on my own fork.

Proposed configuration would work when PR is opened from the same repository, but not from a fork that has no credentials configured.

see https://github.com/cedric-anne/php/actions/runs/2021365693

@cedric-anne
Copy link
Contributor Author

It seems that the CI run without the correct credentials.
I need to investigate about how we can fix that.

It seems that the solution is to not login on Docker Hub from PR.

I get this solution from https://github.com/phparkitect/arkitect/blob/main/.github/workflows/build.yml

@cedric-anne
Copy link
Contributor Author

cedric-anne commented Mar 22, 2022

Official PHP images on alpine 3.12 were removed 9 months ago (see docker-library/php#1166 where 3.12 were replaced by 3.14) and images on alpine 3.13 were removed 4 months ago ( see docker-library/php#1226 where 3.13 were replaced by 3.15).

Removing support of these old alpine versions would highly reduce the build count.

@jdecool
Copy link
Member

jdecool commented Mar 22, 2022

Awesome !

Thanks @cedric-anne.

Removing support of these old alpine versions would highly reduce the build count.

Yes, I need to clean some images.

@jdecool jdecool merged commit 0d8340b into phpdaily:master Mar 22, 2022
@cedric-anne cedric-anne deleted the task/check-build-on-pr branch March 22, 2022 14:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants