Merge 34eeb6882f8d69125dab82efb5979516e821cab4 into 8df5772178508ae11fee04659385a60ac8f5d432

Этот коммит содержится в:
Viginum-DataScientist-6 2025-07-31 18:51:57 +02:00 коммит произвёл GitHub
родитель 8df5772178 34eeb6882f
Коммит ea4c42de12
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
4 изменённых файлов: 86 добавлений и 1 удалений

Просмотреть файл

@ -12,6 +12,7 @@
}
},
"features": {
"ghcr.io/devcontainers/features/docker-in-docker:2": {}
"ghcr.io/devcontainers/features/docker-in-docker:2": {},
"ghcr.io/devcontainers/features/github-cli:1": {}
}
}

29
.github/workflows/publish-devcontainer.yml поставляемый Обычный файл
Просмотреть файл

@ -0,0 +1,29 @@
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

31
.github/workflows/test-devcontainer.yml поставляемый Обычный файл
Просмотреть файл

@ -0,0 +1,31 @@
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

24
Makefile Обычный файл
Просмотреть файл

@ -0,0 +1,24 @@
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 :