Skip to content

Commit

Permalink
👌 IMPROVE: devcontainer with addons, fixed copy_to_release script
Browse files Browse the repository at this point in the history
  • Loading branch information
unl0ck committed Jul 16, 2024
1 parent 90853d6 commit 4d7fa9d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions .devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"containerEnv": {
"WORKSPACE_DIRECTORY": "${containerWorkspaceFolder}"
},
"extensions": ["timonwong.shellcheck", "esbenp.prettier-vscode","ahmadawais.emoji-log-vscode","GitHub.copilot","ms-python.python","ms-python.debugpy","ms-python.vscode-pylance"],
"extensions": ["timonwong.shellcheck", "esbenp.prettier-vscode","ahmadawais.emoji-log-vscode","GitHub.copilot","ms-python.python","ms-python.debugpy","ms-python.vscode-pylance","donjayamanne.githistory"],
"mounts": ["type=volume,target=/var/lib/docker"],
"settings": {
"terminal.integrated.profiles.linux": {
Expand All @@ -21,5 +21,7 @@
"editor.formatOnSave": true,
"editor.formatOnType": true,
"files.trimTrailingWhitespace": true
}
},
// Führt Befehle innerhalb des Containers aus, nachdem er erstellt wurde, aber bevor er gestartet wird
"postCreateCommand": "apt-get install python3 python3-pip python3-venv -y"
}
6 changes: 3 additions & 3 deletions copy_to_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ target_dir="GridboxConnectorAddon"
rsync -av --delete --exclude='config.yaml' --exclude='build.yaml' --exclude='__pycache__' --exclude='.pytest_cache' $src_dir/ $target_dir/

yaml_datei="GridboxConnectorAddon/config.yaml"
current_version=$(yq e '.version' $yaml_datei)
current_version=$(yq -e '.version' $yaml_datei)
echo "Current version: $current_version"
new_version=$(jq -r '.version' GridboxConnectorAddon/rootfs/share/cloudSettings.json)
echo "New version: $new_version"

# Update the version in the config.yaml file

# sed -i "s/version: \"$current_version\"/version: \"$new_version\"/g" $yaml_datei
sed -i "" "s/version: \"$current_version\"/version: \"$new_version\"/g" $yaml_datei
sed -i "s/version: \"$current_version\"/version: \"$new_version\"/g" $yaml_datei
#sed -i "" "s/version: \"$current_version\"/version: \"$new_version\"/g" $yaml_datei

0 comments on commit 4d7fa9d

Please sign in to comment.