Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
name: "Release dev container features"
on:
workflow_dispatch:
release:
types: [published] # Triggers automatically when you hit "Publish Release"
workflow_dispatch: # Keeps the manual "Run workflow" button just in case

jobs:
deploy:
if: ${{ github.ref == 'refs/heads/main' }}
# Removed the 'if' condition so it can process release events cleanly
runs-on: ubuntu-latest
permissions:
contents: write
Expand Down
18 changes: 10 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,25 @@ These examples show how to use features from this repository in a devcontainer:
{
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
"features": {
"ghcr.io/jajera/features/ag:1": {},
"ghcr.io/jajera/features/agentcore-cli:1": {},
"ghcr.io/jajera/features/amazon-q-cli:1": {},
"ghcr.io/jajera/features/aws-sam-cli:1": {},
"ghcr.io/jajera/features/gcloud-cli:1": {},
"ghcr.io/jajera/features/zip:1": {}
"ghcr.io/skyred/features/ag:1": {},
"ghcr.io/skyred/features/agentcore-cli:1": {},
"ghcr.io/skyred/features/amazon-q-cli:1": {},
"ghcr.io/skyred/features/aws-sam-cli:1": {},
"ghcr.io/skyred/features/gcloud-cli:1": {},
"ghcr.io/skyred/features/zip:1": {}
}
}
```

Or use individual features:
Or use individual features with an additonal plugin:

```jsonc
{
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
"features": {
"ghcr.io/jajera/features/gcloud-cli:1": {}
"ghcr.io/skyred/features/gcloud-cli:1": {
"installGkeAuthPlugin": true
}
}
}
```
Expand Down
11 changes: 9 additions & 2 deletions src/gcloud-cli/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
{
"name": "Google Cloud CLI",
"id": "gcloud-cli",
"version": "1.0.1",
"version": "1.1.1",
"description": "Installs Google Cloud CLI (gcloud) for Google Cloud Platform development.",
"documentationURL": "https://cloud.google.com/sdk/docs/install"
"documentationURL": "https://cloud.google.com/sdk/docs/install",
"options": {
"installGkeAuthPlugin": {
"type": "boolean",
"default": false,
"description": "Install the GKE gcloud auth plugin for kubectl authentication."
}
}
}
8 changes: 8 additions & 0 deletions src/gcloud-cli/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -296,4 +296,12 @@ export CLOUDSDK_PYTHON="$INSTALL_DIR/platform/bundledpythonunix/bin/python3"
echo "⚠️ Warning: Could not initialize gcloud automatically. You may need to run 'gcloud init' manually."
}

# Install GKE Auth Plugin if requested
if [ "${INSTALLGKEAUTHPLUGIN}" = "true" ] || [ "${INSTALL_GKE_AUTH_PLUGIN}" = "true" ]; then
echo "📦 Installing gke-gcloud-auth-plugin..."
"$INSTALL_DIR/bin/gcloud" components install gke-gcloud-auth-plugin --quiet || {
echo "⚠️ Warning: Could not install gke-gcloud-auth-plugin automatically."
}
fi

echo "✅ Google Cloud CLI installation complete!"