зеркало из
https://github.com/VIGINUM-FR/D3lta.git
synced 2025-10-29 21:16:20 +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.
25 строки
732 B
Makefile
25 строки
732 B
Makefile
MAKEFLAGS += --no-print-directory
|
|
|
|
.PHONY: _login-to-github
|
|
.PHONY: _trigger-act-job-with-github-token
|
|
|
|
# prefixed with _ to prevent these commands from showing up in make's autocomplete
|
|
_login-to-github:
|
|
gh auth login -s $(SCOPES)
|
|
_trigger-act-job-with-github-token:
|
|
@act -j ${JOB} -s GITHUB_TOKEN="$$(gh auth token)"
|
|
|
|
act-login-to-github-and-%:
|
|
@make _login-to-github SCOPES=${SCOPES}
|
|
@make act-$*
|
|
|
|
act-login-to-github-and-build-devcontainer: SCOPES=read:packages
|
|
act-login-to-github-and-build-and-publish-devcontainer: SCOPES=write:packages
|
|
|
|
act-%:
|
|
@make _trigger-act-job-with-github-token JOB="$*"
|
|
|
|
# ensures these commands are displayed in make's autocomplete
|
|
act-build-devcontainer :
|
|
act-build-and-publish-devcontainer :
|