Skip to content

Commit 73a9f0b

Browse files
committed
Changed: Publish script to latest version
1 parent 3de9d44 commit 73a9f0b

File tree

2 files changed

+47
-5
lines changed

2 files changed

+47
-5
lines changed

.devcontainer/devcontainer.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/alpine
3+
{
4+
"name": "Alpine",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"image": "mcr.microsoft.com/devcontainers/base:alpine-3.20",
7+
"features": {
8+
"ghcr.io/cirolosapio/devcontainers-features/alpine-bash:0": {}
9+
},
10+
"customizations": {
11+
"vscode": {
12+
"extensions": [
13+
"rogalmic.bash-debug",
14+
"GitHub.vscode-pull-request-github",
15+
"streetsidesoftware.code-spell-checker",
16+
"github.vscode-github-actions",
17+
"SanjulaGanepola.github-local-actions",
18+
"DavidAnson.vscode-markdownlint",
19+
"BinaryNoir.vscode-markdown-tags",
20+
"yzhang.markdown-all-in-one",
21+
"christian-kohler.path-intellisense",
22+
"esbenp.prettier-vscode",
23+
"foxundermoon.shell-format"
24+
]
25+
}
26+
}
27+
28+
// Features to add to the dev container. More info: https://containers.dev/features.
29+
// "features": {},
30+
31+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
32+
// "forwardPorts": [],
33+
34+
// Use 'postCreateCommand' to run commands after the container is created.
35+
// "postCreateCommand": "uname -a",
36+
37+
// Configure tool-specific properties.
38+
// "customizations": {},
39+
40+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
41+
// "remoteUser": "root"
42+
}

scripts/publish-release.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
#!/usr/bin/env bash
22

3-
# Extract the version number from the noirnet script
4-
VERSION=$(grep -Eo 'VERSION=[0-9]+\.[0-9]+\.[0-9]+' noirnet | cut -d '=' -f 2)
3+
APP_SCRIPT="noirnet"
4+
5+
# Extract the version number from the application script
6+
VERSION=$(grep -Eo 'VERSION=[0-9]+\.[0-9]+\.[0-9]+' $APP_SCRIPT | cut -d '=' -f 2)
57

68
# Check if the version number was found
79
if [ -z "$VERSION" ]; then
8-
echo "Version number not found in noirnet script."
10+
echo "Version number not found in $APP_SCRIPT script."
911
exit 1
1012
fi
1113

12-
REPO="binarynoir/noirnet"
13-
1414
# Ensure repo is up-to-date
1515
git pull
1616

0 commit comments

Comments
 (0)