D3lta/.github/workflows/publish-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

30 строки
692 B
YAML

name: Build and push the devcontainer
on:
push:
branches:
- main
jobs:
build-and-publish-devcontainer:
runs-on: ubuntu-latest
steps:
- name: Checkout (GitHub)
uses: actions/checkout@v3
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 and publish Dev Container
uses: devcontainers/ci@v0.3
with:
imageName: ghcr.io/viginum-fr/d3lta
cacheFrom: ghcr.io/viginum-fr/d3lta