This repository contains a Coder Docker template under template/ and a GitHub Actions workflow for building the desktop image and deploying the template.
The workflow at .github/workflows/deploy-template.yml runs on pushes to main or master, and can also be run manually. It:
- Builds
template/Dockerfile. - Pushes
rosssearle/ubuntu-desktop:<short-sha>androsssearle/ubuntu-desktop:latestto Docker Hub. - Rewrites
template/main.tfduring CI so the template points at the newly pushed SHA-tagged image. - Stages only
template/main.tfandtemplate/README.md, then pushes that small template bundle to your Coder instance withcoder templates push.
The Coder URL is configured directly in the workflow as:
CODER_URL=https://coder.rosssearle.com
Configure these GitHub repository secrets:
DOCKERHUB_TOKEN: Docker Hub token with write access torosssearle/ubuntu-desktop.CODER_ACCESS_TOKEN: A Coder token with permission to push templates.
Manual runs can override the image tag and Coder template name. The default template name is docker-desktop.
See template/README.md for local template usage and image details.