umccr / icav2-cli-plugins

A set of additional subcommands for icav2
MIT License
1 stars 0 forks source link

Create a docker container through ghcr.io #262

Open alexiswl opened 6 months ago

alexiswl commented 6 months ago

Create a docker container through GitHub actions

brainstorm commented 6 months ago

Hope this helps!: https://github.com/umccr/htsget-rs/blob/main/.github/workflows/release.yml#L24-L41

alexiswl commented 6 months ago

Hope this helps!: https://github.com/umccr/htsget-rs/blob/main/.github/workflows/release.yml#L24-L41

Thanks, have a few up my sleeve -

Standard: snippet (uses latest versions of the docker github actions)

https://github.com/umccr/cwl-ica-cli/blob/main/.github/workflows/create_release_assets.yml#L63-L97

For multi-platforms - depending on what platforms.yml says (adjacent to the dockerfile)

https://github.com/umccr/docker-who/blob/main/.github/workflows/scatter_build_and_push_to_ghcrio.yml

As a GitHub actions sub-workflow (for when part of a bigger cicd pipeline and only want the container to build once all of the other processes have worked - tests, pypi publishing etc)

https://github.com/umccr/v2-samplesheet-maker/blob/dev/.github/workflows/build_container.yml

brainstorm commented 6 months ago

I just came across one bit you might not have in your arsenal yet?: https://github.com/CSCfi/docker-emscripten-crypt4gh/commit/8e2808498e0adde509e295dc29edcaffd528c23c