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

Dockerfile and image build/push GitHub action #1936

Merged
merged 10 commits into from
Nov 23, 2021
Merged

Dockerfile and image build/push GitHub action #1936

merged 10 commits into from
Nov 23, 2021

Conversation

rjgildea
Copy link
Contributor

@rjgildea rjgildea commented Nov 19, 2021

Add a Dockerfile and "Build and push Docker images" GitHub action to build a docker image and push to the GitHub Container Registry

This current implementation:

  • builds a new image on every push to main and tags it as ghcr.io/dials/dials:edge
  • builds a new image for every tag of the form vX.Y.Z and tags it as ghcr.io/dials/dials:X.Y.Z and ghcr.io/dials/dials:latest

Possible additions or changes include building according to a schedule, e.g. for nightly builds, or adding tests to the image builds. We probably also want to push images to Docker Hub (as well, or instead of ghcr?), but I need to setup a Docker Hub Personal Access Token to enable this first.

* For a tag e.g. v3.7.1 then parse out the branch name dials-3.7 to
  set as a build-arg to docker build
* Trigger builds on pushes to main and new tags
* Builds from main will be tagged :edge
Apparently the release branch bootstrap already knows to checkout
the relevant release branches for all repos.
@codecov
Copy link

codecov bot commented Nov 21, 2021

Codecov Report

Merging #1936 (da5ae1a) into main (1596bb4) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #1936   +/-   ##
=======================================
  Coverage   67.12%   67.12%           
=======================================
  Files         619      619           
  Lines       70029    70029           
  Branches     9734     9734           
=======================================
  Hits        47010    47010           
  Misses      21052    21052           
  Partials     1967     1967           

I think this resulted in it trying to push the image
dials/dials/dials instead of dials/dials
@rjgildea rjgildea merged commit ab2c505 into main Nov 23, 2021
@rjgildea rjgildea deleted the docker branch November 23, 2021 12:50
rjgildea added a commit that referenced this pull request Dec 2, 2021
Add a Dockerfile and "Build and push Docker images" GitHub action to build a
docker image and push to the GitHub Container Registry and Docker Hub:
- builds a new image on every push to main and tags it as
  ghcr.io/dials/dials:edge and docker.io/dials/dials:edge
- builds a new image for every tag of the form vX.Y.Z and tags it as
  ghcr.io/dials/dials:X.Y.Z, ghcr.io/dials/dials:latest,
  docker.io/dials/dials:X.Y.Z and docker.io/dials/dials:latest
DiamondLightSource-build-server added a commit that referenced this pull request Dec 2, 2021
Features
--------

- Add ``Dockerfile`` and Build and Push Docker images GitHub action (#1936)

Bugfixes
--------

- Copy docker entrypoint script with exec permissions (#1940)
DiamondLightSource-build-server added a commit that referenced this pull request Dec 3, 2021
Features
--------

- Add ``Dockerfile`` and Build and Push Docker images GitHub action (#1936)

Bugfixes
--------

- Copy docker entrypoint script with exec permissions (#1940)
DiamondLightSource-build-server added a commit that referenced this pull request Dec 4, 2021
Features
--------

- Add ``Dockerfile`` and Build and Push Docker images GitHub action (#1936)

Bugfixes
--------

- Copy docker entrypoint script with exec permissions (#1940)
DiamondLightSource-build-server added a commit that referenced this pull request Dec 5, 2021
Features
--------

- Add ``Dockerfile`` and Build and Push Docker images GitHub action (#1936)

Bugfixes
--------

- Copy docker entrypoint script with exec permissions (#1940)
DiamondLightSource-build-server added a commit that referenced this pull request Dec 6, 2021
Features
--------

- Add ``Dockerfile`` and Build and Push Docker images GitHub action (#1936)

Bugfixes
--------

- Copy docker entrypoint script with exec permissions (#1940)
DiamondLightSource-build-server added a commit that referenced this pull request Dec 8, 2021
Features
--------

- Add ``Dockerfile`` and Build and Push Docker images GitHub action (#1936)

Bugfixes
--------

- Copy docker entrypoint script with exec permissions (#1940)
DiamondLightSource-build-server added a commit that referenced this pull request Dec 9, 2021
Features
--------

- Add ``Dockerfile`` and Build and Push Docker images GitHub action (#1936)

Bugfixes
--------

- Copy docker entrypoint script with exec permissions (#1940)
DiamondLightSource-build-server added a commit that referenced this pull request Dec 10, 2021
Features
--------

- Add ``Dockerfile`` and Build and Push Docker images GitHub action (#1936)

Bugfixes
--------

- Copy docker entrypoint script with exec permissions (#1940)
DiamondLightSource-build-server added a commit that referenced this pull request Dec 11, 2021
Features
--------

- Add ``Dockerfile`` and Build and Push Docker images GitHub action (#1936)

Bugfixes
--------

- Copy docker entrypoint script with exec permissions (#1940)
DiamondLightSource-build-server added a commit that referenced this pull request Dec 12, 2021
Features
--------

- Add ``Dockerfile`` and Build and Push Docker images GitHub action (#1936)

Bugfixes
--------

- Copy docker entrypoint script with exec permissions (#1940)
DiamondLightSource-build-server added a commit that referenced this pull request Dec 13, 2021
Features
--------

- Add ``Dockerfile`` and Build and Push Docker images GitHub action (#1936)

Bugfixes
--------

- Copy docker entrypoint script with exec permissions (#1940)
dagewa pushed a commit to dagewa/dials that referenced this pull request Dec 13, 2021
Add a Dockerfile and "Build and push Docker images" GitHub action to build a
docker image and push to the GitHub Container Registry and Docker Hub:
- builds a new image on every push to main and tags it as
  ghcr.io/dials/dials:edge and docker.io/dials/dials:edge
- builds a new image for every tag of the form vX.Y.Z and tags it as
  ghcr.io/dials/dials:X.Y.Z, ghcr.io/dials/dials:latest,
  docker.io/dials/dials:X.Y.Z and docker.io/dials/dials:latest
DiamondLightSource-build-server added a commit that referenced this pull request Dec 14, 2021
Features
--------

- Add ``Dockerfile`` and Build and Push Docker images GitHub action (#1936)

Bugfixes
--------

- Copy docker entrypoint script with exec permissions (#1940)
DiamondLightSource-build-server added a commit that referenced this pull request Dec 15, 2021
Features
--------

- Add ``Dockerfile`` and Build and Push Docker images GitHub action (#1936)

Bugfixes
--------

- Copy docker entrypoint script with exec permissions (#1940)
DiamondLightSource-build-server added a commit that referenced this pull request Dec 16, 2021
Features
--------

- Add ``Dockerfile`` and Build and Push Docker images GitHub action (#1936)

Bugfixes
--------

- Copy docker entrypoint script with exec permissions (#1940)
DiamondLightSource-build-server added a commit that referenced this pull request Dec 17, 2021
Features
--------

- Add ``Dockerfile`` and Build and Push Docker images GitHub action (#1936)

Bugfixes
--------

- Copy docker entrypoint script with exec permissions (#1940)
DiamondLightSource-build-server added a commit that referenced this pull request Dec 18, 2021
Features
--------

- Add ``Dockerfile`` and Build and Push Docker images GitHub action (#1936)

Bugfixes
--------

- Copy docker entrypoint script with exec permissions (#1940)
DiamondLightSource-build-server added a commit that referenced this pull request Dec 19, 2021
Features
--------

- Add ``Dockerfile`` and Build and Push Docker images GitHub action (#1936)

Bugfixes
--------

- Copy docker entrypoint script with exec permissions (#1940)
DiamondLightSource-build-server added a commit that referenced this pull request Dec 20, 2021
Features
--------

- Add ``Dockerfile`` and Build and Push Docker images GitHub action (#1936)

Bugfixes
--------

- Copy docker entrypoint script with exec permissions (#1940)
DiamondLightSource-build-server added a commit that referenced this pull request Dec 21, 2021
Features
--------

- Add ``Dockerfile`` and Build and Push Docker images GitHub action (#1936)

Bugfixes
--------

- Copy docker entrypoint script with exec permissions (#1940)
DiamondLightSource-build-server added a commit that referenced this pull request Dec 22, 2021
Features
--------

- Add ``Dockerfile`` and Build and Push Docker images GitHub action (#1936)

Bugfixes
--------

- Copy docker entrypoint script with exec permissions (#1940)
DiamondLightSource-build-server added a commit that referenced this pull request Dec 23, 2021
Features
--------

- Add ``Dockerfile`` and Build and Push Docker images GitHub action (#1936)

Bugfixes
--------

- Copy docker entrypoint script with exec permissions (#1940)
DiamondLightSource-build-server added a commit that referenced this pull request Dec 24, 2021
Features
--------

- Add ``Dockerfile`` and Build and Push Docker images GitHub action (#1936)

Bugfixes
--------

- Copy docker entrypoint script with exec permissions (#1940)
DiamondLightSource-build-server added a commit that referenced this pull request Dec 25, 2021
Features
--------

- Add ``Dockerfile`` and Build and Push Docker images GitHub action (#1936)

Bugfixes
--------

- Copy docker entrypoint script with exec permissions (#1940)
DiamondLightSource-build-server added a commit that referenced this pull request Dec 26, 2021
Features
--------

- Add ``Dockerfile`` and Build and Push Docker images GitHub action (#1936)

Bugfixes
--------

- Copy docker entrypoint script with exec permissions (#1940)
DiamondLightSource-build-server added a commit that referenced this pull request Dec 27, 2021
Features
--------

- Add ``Dockerfile`` and Build and Push Docker images GitHub action (#1936)

Bugfixes
--------

- Copy docker entrypoint script with exec permissions (#1940)
DiamondLightSource-build-server added a commit that referenced this pull request Dec 28, 2021
Features
--------

- Add ``Dockerfile`` and Build and Push Docker images GitHub action (#1936)

Bugfixes
--------

- Copy docker entrypoint script with exec permissions (#1940)
DiamondLightSource-build-server added a commit that referenced this pull request Dec 29, 2021
Features
--------

- Add ``Dockerfile`` and Build and Push Docker images GitHub action (#1936)

Bugfixes
--------

- Copy docker entrypoint script with exec permissions (#1940)
DiamondLightSource-build-server added a commit that referenced this pull request Dec 30, 2021
Features
--------

- Add ``Dockerfile`` and Build and Push Docker images GitHub action (#1936)

Bugfixes
--------

- Copy docker entrypoint script with exec permissions (#1940)
DiamondLightSource-build-server added a commit that referenced this pull request Dec 31, 2021
Features
--------

- Add ``Dockerfile`` and Build and Push Docker images GitHub action (#1936)

Bugfixes
--------

- Copy docker entrypoint script with exec permissions (#1940)
DiamondLightSource-build-server added a commit that referenced this pull request Jan 1, 2022
Features
--------

- Add ``Dockerfile`` and Build and Push Docker images GitHub action (#1936)

Bugfixes
--------

- Copy docker entrypoint script with exec permissions (#1940)
DiamondLightSource-build-server added a commit that referenced this pull request Jan 2, 2022
Features
--------

- Add ``Dockerfile`` and Build and Push Docker images GitHub action (#1936)

Bugfixes
--------

- Copy docker entrypoint script with exec permissions (#1940)
DiamondLightSource-build-server added a commit that referenced this pull request Jan 3, 2022
Features
--------

- Add ``Dockerfile`` and Build and Push Docker images GitHub action (#1936)

Bugfixes
--------

- Copy docker entrypoint script with exec permissions (#1940)
DiamondLightSource-build-server added a commit that referenced this pull request Jan 4, 2022
Features
--------

- Add ``Dockerfile`` and Build and Push Docker images GitHub action (#1936)

Bugfixes
--------

- Copy docker entrypoint script with exec permissions (#1940)
DiamondLightSource-build-server added a commit that referenced this pull request Jan 5, 2022
Features
--------

- Add ``Dockerfile`` and Build and Push Docker images GitHub action (#1936)

Bugfixes
--------

- Copy docker entrypoint script with exec permissions (#1940)
DiamondLightSource-build-server added a commit that referenced this pull request Jan 6, 2022
Features
--------

- Add ``Dockerfile`` and Build and Push Docker images GitHub action (#1936)

Bugfixes
--------

- Copy docker entrypoint script with exec permissions (#1940)
DiamondLightSource-build-server added a commit that referenced this pull request Jan 7, 2022
Features
--------

- Add ``Dockerfile`` and Build and Push Docker images GitHub action (#1936)

Bugfixes
--------

- Copy docker entrypoint script with exec permissions (#1940)
DiamondLightSource-build-server added a commit that referenced this pull request Jan 8, 2022
Features
--------

- Add ``Dockerfile`` and Build and Push Docker images GitHub action (#1936)

Bugfixes
--------

- Copy docker entrypoint script with exec permissions (#1940)
DiamondLightSource-build-server added a commit that referenced this pull request Jan 9, 2022
Features
--------

- Add ``Dockerfile`` and Build and Push Docker images GitHub action (#1936)

Bugfixes
--------

- Copy docker entrypoint script with exec permissions (#1940)
DiamondLightSource-build-server added a commit that referenced this pull request Jan 10, 2022
Features
--------

- Add ``Dockerfile`` and Build and Push Docker images GitHub action (#1936)

Bugfixes
--------

- Copy docker entrypoint script with exec permissions (#1940)
DiamondLightSource-build-server added a commit that referenced this pull request Jan 11, 2022
Features
--------

- Add ``Dockerfile`` and Build and Push Docker images GitHub action (#1936)

Bugfixes
--------

- Copy docker entrypoint script with exec permissions (#1940)
DiamondLightSource-build-server added a commit that referenced this pull request Jan 12, 2022
Features
--------

- Add ``Dockerfile`` and Build and Push Docker images GitHub action (#1936)

Bugfixes
--------

- Copy docker entrypoint script with exec permissions (#1940)
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.

None yet

2 participants