зеркало из
https://github.com/VIGINUM-FR/D3lta.git
synced 2025-10-30 05:26:15 +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.
30 строки
692 B
YAML
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
|