D3lta/Makefile
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

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 :