feat: dev container support (#734)

* chore: add devcontainer for Anubis

Signed-off-by: Xe Iaso <me@xeiaso.net>

* chore(devcontainer): ensure user can write to $HOME

Signed-off-by: Xe Iaso <me@xeiaso.net>

* chore(devcontainer): forward ports, add launch config

Signed-off-by: Xe Iaso <me@xeiaso.net>

* chore(devcontainer): add playwright deps

Signed-off-by: Xe Iaso <me@xeiaso.net>

* docs: document devcontainer usage

Signed-off-by: Xe Iaso <me@xeiaso.net>

* chore: spelling

Signed-off-by: Xe Iaso <me@xeiaso.net>

* ci(devcontainer): fix action references

Signed-off-by: Xe Iaso <me@xeiaso.net>

* chore(devcontainer): fix ko on arm64

Signed-off-by: Xe Iaso <me@xeiaso.net>

---------

Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
Xe Iaso 2025-06-30 03:41:29 +00:00 committed by GitHub
parent 1820649987
commit f5b3bf81bc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 156 additions and 1 deletions

View file

@ -13,6 +13,8 @@ asnc
asnchecker
asns
aspirational
atuin
azuretools
badregexes
bdba
berr
@ -48,6 +50,7 @@ chibi
cidranger
ckie
cloudflare
Codespaces
confd
containerbuild
coreutils
@ -223,6 +226,7 @@ qwantbot
rac
rawler
rcvar
redhat
redir
redirectscheme
refactors
@ -248,6 +252,7 @@ shellcheck
Sidetrade
simprint
sitemap
skopeo
sls
sni
Sourceware
@ -277,6 +282,7 @@ Tik
Timpibot
traefik
uberspace
unifiedjs
unixhttpd
unmarshal
unparseable
@ -322,4 +328,5 @@ yoursite
Zenos
zizmor
zombocom
Zonbocom
zos

47
.github/workflows/devcontainer.yml vendored Normal file
View file

@ -0,0 +1,47 @@
name: Dev container prebuild
on:
push:
branches: ["main"]
tags: ["v*.*.*"]
jobs:
devcontainer:
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-tags: true
fetch-depth: 0
persist-credentials: false
- name: Set up QEMU
uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: latest
- run: |
sudo apt-get update
sudo apt-get -y install skopeo
- name: Log into registry
if: github.event_name != 'pull_request'
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
with:
registry: ghcr.io
username: techarohq
password: ${{ secrets.GITHUB_TOKEN }}
- name: Pre-build dev container image
uses: devcontainers/ci@8bf61b26e9c3a98f69cb6ce2f88d24ff59b785c6 # v0.3.1900000417
with:
imageName: ghcr.io/techarohq/anubis/devcontainer
cacheFrom: ghcr.io/techarohq/anubis/devcontainer
push: always
platform: linux/amd64,linux/arm64