Skip to content

Commit 176fa1a

Browse files
committed
add script and makefile to run all releases
1 parent 3cba6a3 commit 176fa1a

File tree

7 files changed

+739
-40
lines changed

7 files changed

+739
-40
lines changed

.devcontainer/devcontainer.json

Lines changed: 47 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,53 @@
11
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
22
// README at: https://github.com/devcontainers/templates/tree/main/src/ubuntu
33
{
4-
"name": "Ubuntu",
5-
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6-
"build": {
7-
"dockerfile": "Dockerfile",
8-
"context": "..",
9-
"args": {
10-
"DOCKER_GID": "${env:DOCKER_GID:}"
11-
}
12-
},
13-
"mounts": [
14-
"source=${env:HOME}${env:USERPROFILE}/.aws,target=/home/vscode/.aws,type=bind",
15-
"source=${env:HOME}${env:USERPROFILE}/.ssh,target=/home/vscode/.ssh,type=bind",
16-
"source=${env:HOME}${env:USERPROFILE}/.gnupg,target=/home/vscode/.gnupg,type=bind",
17-
"source=${env:HOME}${env:USERPROFILE}/.npmrc,target=/home/vscode/.npmrc,type=bind"
18-
],
19-
"containerUser": "vscode",
20-
"remoteEnv": { "LOCAL_WORKSPACE_FOLDER": "${localWorkspaceFolder}" },
21-
"postAttachCommand": "docker build -f /workspaces/eps-common-workflows/dockerfiles/nhsd-git-secrets.dockerfile -t git-secrets . && pre-commit install --install-hooks -f",
22-
"features": {
23-
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {
24-
"version": "latest",
25-
"moby": "true",
26-
"installDockerBuildx": "true"
27-
}
28-
},
29-
"customizations": {
30-
"vscode": {
31-
"extensions": [
32-
"AmazonWebServices.aws-toolkit-vscode",
33-
"redhat.vscode-yaml",
34-
"eamodio.gitlens",
35-
"github.vscode-pull-request-github",
36-
"streetsidesoftware.code-spell-checker",
37-
"timonwong.shellcheck",
38-
"github.vscode-github-actions"
39-
],
40-
"settings": {
41-
"cSpell.words": ["fhir", "Formik", "pino", "serialisation"]
42-
}
4+
"name": "Ubuntu",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"build": {
7+
"dockerfile": "Dockerfile",
8+
"context": "..",
9+
"args": {
10+
"DOCKER_GID": "${env:DOCKER_GID:}"
11+
}
12+
},
13+
"mounts": [
14+
"source=${env:HOME}${env:USERPROFILE}/.aws,target=/home/vscode/.aws,type=bind",
15+
"source=${env:HOME}${env:USERPROFILE}/.ssh,target=/home/vscode/.ssh,type=bind",
16+
"source=${env:HOME}${env:USERPROFILE}/.gnupg,target=/home/vscode/.gnupg,type=bind",
17+
"source=${env:HOME}${env:USERPROFILE}/.npmrc,target=/home/vscode/.npmrc,type=bind"
18+
],
19+
"containerUser": "vscode",
20+
"remoteEnv": {
21+
"LOCAL_WORKSPACE_FOLDER": "${localWorkspaceFolder}"
22+
},
23+
"postAttachCommand": "docker build -f /workspaces/eps-common-workflows/dockerfiles/nhsd-git-secrets.dockerfile -t git-secrets . && pre-commit install --install-hooks -f",
24+
"features": {
25+
"ghcr.io/devcontainers/features/github-cli:1": {},
26+
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {
27+
"version": "latest",
28+
"moby": "true",
29+
"installDockerBuildx": "true"
30+
}
31+
},
32+
"customizations": {
33+
"vscode": {
34+
"extensions": [
35+
"AmazonWebServices.aws-toolkit-vscode",
36+
"redhat.vscode-yaml",
37+
"eamodio.gitlens",
38+
"github.vscode-pull-request-github",
39+
"streetsidesoftware.code-spell-checker",
40+
"timonwong.shellcheck",
41+
"github.vscode-github-actions"
42+
],
43+
"settings": {
44+
"cSpell.words": [
45+
"fhir",
46+
"Formik",
47+
"pino",
48+
"serialisation"
49+
]
4350
}
4451
}
4552
}
53+
}

.gitallowed

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
token: ?"?\$\{\{\s*secrets\.GITHUB_TOKEN\s*\}\}"?
22
.*\.gitallowed.*
33
id-token: write
4+
def __init__\(self, token: str, owner: str, repo: str\)
5+
token = os.environ\.get\("GH_TOKEN"\)
6+
self\.token = token

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,6 @@ test:
3232

3333
build:
3434
echo "Not implemented"
35+
36+
run-all-release:
37+
./scripts/run_all_release.sh 2>&1 | tee release_$(shell date +%Y%m%d_%H%M%S).log

0 commit comments

Comments
 (0)