Skip to content

Add release workflow with beta support to publish to GitHub Container Registry#1

Merged
iantrich merged 8 commits intomainfrom
copilot/optimize-devcontainer-performance
Mar 3, 2026
Merged

Add release workflow with beta support to publish to GitHub Container Registry#1
iantrich merged 8 commits intomainfrom
copilot/optimize-devcontainer-performance

Conversation

Copy link
Contributor

Copilot AI commented Mar 2, 2026

  • Add beta release support to release workflow (stable → 1.2.3, 1.2, latest; pre-release → 1.2.3-beta.1, beta)
  • Extract pre-release detection into a named step output for maintainability
  • Update README to document beta image usage
  • Fix Docker build failure: remove /etc/apt/sources.list.d/yarn.list (expired GPG key in base image) before apt-get update
Original prompt

We're making a devcontainer to be used by Home Assistant custom card developers. We can use this repo as a starting point: https://github.com/thomasloven/hass-custom-devcontainer
We do not need to support plugins. I want to use the latest version of home assistant. Be smarter about downloading and creating the HACS integration. Ideally we'd only do it if there's a newer version of HACS to pull down. Also, support remote files using this PR I submitted thomasloven/hass-custom-devcontainer#231. In general though, look for any areas for performance updates, updates to libraries used and make sure this is portable and usable within Github workspaces as well.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

…emote files, and Codespaces support

Co-authored-by: iantrich <1287159+iantrich@users.noreply.github.com>
Copilot AI changed the title [WIP] Update devcontainer for Home Assistant custom card developers Bootstrap devcontainer for HA custom card development Mar 2, 2026
…ges)

Co-authored-by: iantrich <1287159+iantrich@users.noreply.github.com>
Copilot AI changed the title Bootstrap devcontainer for HA custom card development Bootstrap HA custom card devcontainer with smart HACS, remote resources, and ghcr.io release workflow Mar 2, 2026
…or pre-releases

Co-authored-by: iantrich <1287159+iantrich@users.noreply.github.com>
Copilot AI changed the title Bootstrap HA custom card devcontainer with smart HACS, remote resources, and ghcr.io release workflow Add release workflow with beta support to publish to GitHub Container Registry Mar 2, 2026
@iantrich
Copy link
Member

iantrich commented Mar 3, 2026

@copilot I'm getting the following error in the release workflow with this code

ERROR: failed to build: failed to solve: process "/bin/bash -o pipefail -c apt-get update     && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends         bluez         libffi-dev         libssl-dev         libjpeg-dev         zlib1g-dev         autoconf         build-essential         libopenjp2-7         libtiff6         libturbojpeg0-dev         tzdata         ffmpeg         liblapack3         liblapack-dev         libatlas-base-dev         git         libpcap-dev         unzip     && apt-get clean     && rm -rf /var/lib/apt/lists/*     && source /usr/local/share/nvm/nvm.sh     && nvm install --lts     && pip install --upgrade wheel pip uv" did not complete successfully: exit code: 100
Reference
Check build summary support
Error: buildx failed with: ERROR: failed to build: failed to solve: process "/bin/bash -o pipefail -c apt-get update     && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends         bluez         libffi-dev         libssl-dev         libjpeg-dev         zlib1g-dev         autoconf         build-essential         libopenjp2-7         libtiff6         libturbojpeg0-dev         tzdata         ffmpeg         liblapack3         liblapack-dev         libatlas-base-dev         git         libpcap-dev         unzip     && apt-get clean     && rm -rf /var/lib/apt/lists/*     && source /usr/local/share/nvm/nvm.sh     && nvm install --lts     && pip install --upgrade wheel pip uv" did not complete successfully: exit code: 100

https://github.com/custom-cards/custom-card-devcontainer/actions/runs/22604654914/job/65493981529

… update

Co-authored-by: iantrich <1287159+iantrich@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Mar 3, 2026

@copilot I'm getting the following error in the release workflow with this code

ERROR: failed to build: failed to solve: process "/bin/bash -o pipefail -c apt-get update     && DEBIAN_FRONTEND=n...

The failure was caused by the base image (mcr.microsoft.com/devcontainers/python:1-3.13) shipping with /etc/apt/sources.list.d/yarn.list, whose GPG key has expired — making apt-get update exit with code 100.

Since Node.js is already installed via nvm, the Yarn apt-source isn't needed. Fixed in b792c47 by removing that file before running apt-get update:

RUN rm -f /etc/apt/sources.list.d/yarn.list \
    && apt-get update \
    ...

iantrich added 3 commits March 2, 2026 20:31
Updated Dockerfile to force executable mode during copy:
COPY --chmod=0755 container /usr/local/bin/container
COPY --chmod=0755 hassfest /usr/local/bin/hassfest
@iantrich iantrich marked this pull request as ready for review March 3, 2026 05:02
@iantrich iantrich merged commit c68f989 into main Mar 3, 2026
5 checks passed
@iantrich iantrich deleted the copilot/optimize-devcontainer-performance branch March 3, 2026 05:02
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.

2 participants