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

chore: Distribute as docker image #1875

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

mircea-pavel-anton
Copy link

@mircea-pavel-anton mircea-pavel-anton commented Oct 21, 2024

This is currently a WIP to solve #1801

Some notes

  • I chose debian as a base for the docker image instead of alpine, for example, such that I can load the bash completion

  • I set the workdir to /workspace to facilitate mounting volumes into the container via ad-hoc docker commands, i.e.:

    docker run -it -v $PWD:/workspace ghcr.io/go-task/task:v3.39.2-amd64 lint # equivalent of `task lint`
  • I set the cmd instead of the entrypoint to the task executable such that it is easier to just exec into the container like so:

    docker run -it -v $PWD:/workspace ghcr.io/go-task/task:v3.39.2-amd64 /bin/bash
  • the current implementation pushes both to dockerhub and ghcr.io

  • the current implementation pushes:

    • version tagged images (ghcr.io/go-task/task:v3.39.2)
    • version and arch tagged images (ghcr.io/go-task/task:v3.39.2-amd64)
    • latest images (ghcr.io/go-task/task:latest)

TODO

  • update release workflow to login to ghcr and/or dockerhub
  • figure out bash completion

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.

1 participant