зеркало из
https://github.com/VIGINUM-FR/D3lta.git
synced 2025-10-29 13:06:10 +02:00
- 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.
32 строки
762 B
YAML
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
|