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

Build Docker image and push to GHCR #230

Open
wants to merge 10 commits into
base: unstable/v1
Choose a base branch
from

Commits on May 16, 2024

  1. Build Docker image and push to GHCR

    Up to this point, the project has been set up as a Docker action
    referencing the Dockerfile. The downside to using the Dockerfile for the
    action is that the Docker image must be built every time the action is
    used.
    
    This commit will set up the project to build the Docker image and push
    it to GitHub Container Registry (GHCR). This change will speed up user
    workflows every time the action is used because the workflows will
    simply pull the Docker image from GHCR instead of building again.
    
    Changes:
    
    - Add required metadata to Dockerfile
    - Build container image with GitHub Actions
    - Push container image to GHCR
    
    Docker actions support pulling in pre-built Docker images. The downside
    is that there's no way to specify the correct Docker tag because the
    GitHub Actions `image` and `uses:` keys don't accept any context.
    For example, if a user's workflow has
    `uses: pypa/gh-action-pypi-publish@release/v1.8`, then the action should
    pull in a Docker image built from the `release/v1.8` branch, something
    like `ghcr.io/pypa/gh-action-pypi-publish:release-v1.8` (Docker tags
    can't have `/`). The workaround is to switch the top-level `action.yml`
    to a composite action that then calls the Docker action, substituting
    the correct image name and tag.
    br3ndonland authored and webknjaz committed May 16, 2024
    Configuration menu
    Copy the full SHA
    9756850 View commit details
    Browse the repository at this point in the history
  2. Fix pre-commit errors

    br3ndonland authored and webknjaz committed May 16, 2024
    Configuration menu
    Copy the full SHA
    769f499 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3384fad View commit details
    Browse the repository at this point in the history

Commits on May 27, 2024

  1. Configuration menu
    Copy the full SHA
    9ae1850 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1b535ae View commit details
    Browse the repository at this point in the history
  3. Remove added Docker LABEL

    br3ndonland committed May 27, 2024
    Configuration menu
    Copy the full SHA
    213c885 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5f0743b View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    049447a View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    2fb692b View commit details
    Browse the repository at this point in the history
  7. Reset smoke test path

    br3ndonland committed May 27, 2024
    Configuration menu
    Copy the full SHA
    30c8fae View commit details
    Browse the repository at this point in the history