coder / envbuilder

Build development environments from a Dockerfile on Docker, Kubernetes, and OpenShift. Enable developers to modify their development environment quickly.
Apache License 2.0
111 stars 23 forks source link

ci: build and push image for `main` branch #222

Closed matifali closed 1 month ago

matifali commented 1 month ago

This pull request updates the ci workflow to build and push a Docker image for the main branch.

Image is pushed to ghcr.io/coder/envbuilder-preview to not pollute the manually tagged versions at ghcr.io/coder/envbuilder

This will help test the features that are under development.

Each image is tagged as latest and $(./scripts/version.sh)-dev-$(git rev-parse --short HEAD) e.g.,

  1. ghcr.io/coder/envbuilder-preview:latest
  2. ghcr.io/coder/envbuilder-preview:v0.2.9-dev-ab86184

Alternatively, we can push ghcr.io/coder/envbuilder:main to the same package.

matifali commented 1 month ago

@dannykopping I have tested the workflow except the push image step, but will pass this through the linter. Thanks for calling it.

johnstcn commented 1 month ago

@matifali is this good to merge?

matifali commented 1 month ago

Yes. Once the CI passes it should be good to merge.