D3lta/.github/workflows/test-devcontainer.yml
Viginum-DataScientist-6 34eeb6882f feat(devcontainer,tests): add devcontainer-related CI
- Add devcontainer building test.
- Add pre-built devcontainer publish to VIGINUM-FR ghcr.io registry for caching and faster re-builds.
- Re-add gh CLI devcontainer feature for retrieving tokens with the appropriate scopes.
- Add a Makefile with act-based commands for triggering the workflows introduced in the commit.
2025-07-31 16:33:05 +00:00

32 строки
762 B
YAML

name: Test building the devcontainer
on: # test on any PRs and main branch changes
pull_request:
push:
branches:
- main
jobs:
build-devcontainer:
name: Test building the dev container
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build the dev container
uses: devcontainers/ci@v0.3
with:
imageName: ghcr.io/viginum-fr/d3lta
cacheFrom: ghcr.io/viginum-fr/d3lta
push: never