-
Notifications
You must be signed in to change notification settings - Fork 170
More flexible Dockerfile, and restore pushing docker containers for master #4400
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
Conversation
|
||
docker: | ||
name: Build dev Docker containers | ||
uses: ./.github/workflows/docker.yml | ||
with: | ||
tag: dev-main | ||
branch: main | ||
build_dev: true | ||
secrets: inherit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
REMOVE BEFORE MERGE
docker: | |
name: Build dev Docker containers | |
uses: ./.github/workflows/docker.yml | |
with: | |
tag: dev-main | |
branch: main | |
build_dev: true | |
secrets: inherit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I need to review the workflow file in more detail but looks pretty good.
Shouldn't this be going into release
and not main
? Otherwise we won't be building the dev-release
containers.
Co-authored-by: Connor Ward <[email protected]>
Co-authored-by: Connor Ward <[email protected]>
…akeproject/firedrake into JHopeCollins/more-flexible-docker
CLOSED: Replaced by #4533
There seems to be some appetite for people building their own Firedrake Docker containers. The current Dockerfiles are very static in what they can do - apart from allowing different ARCH options. This PR makes the Dockerfile slightly more flexible by allowing passing a particular branch to install from:
release
then the behaviour is unchanged - Firedrake and PETSc are both built from the corresponding release branches.firedrake-configure
is downloaded from the specified branch, PETSc is installed from the latestmain
branch, and Firedrake is installed from the latest version of the specified branch.TODO:
Some downstream repositories want to test against
master
rather thanrelease
, or test against bothmaster
andrelease
. However, we no longer build a Docker container on pushes to master. Being able to specify a non-release branch to the Dockerfile means we can use the same Dockerfile to build containers for both release and master.