Skip to content

Commit

Permalink
FONDLED THE CODE
Browse files Browse the repository at this point in the history
Signed-off-by: Mriyam Tamuli <mbtamuli@gmail.com>
  • Loading branch information
mbtamuli committed Jan 21, 2024
1 parent 1bf9ad7 commit f794403
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/.devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
// For format details, see https://containers.dev
{
"name": "csi-driver-image dev container",
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",

"otherPortsAttributes": {
"onAutoForward": "silent"
},

"features": {
"ghcr.io/devcontainers/features/go:1": {
"version": "1.19"
},
"ghcr.io/devcontainers/features/kubectl-helm-minikube:1": {
"version": "latest",
"helm": "latest",
"minikube": "none"
},
"ghcr.io/devcontainers/features/docker-in-docker:2": {
"dockerDashComposeVersion": "v2"
},
"ghcr.io/devcontainers-contrib/features/kind:1": {}
},

"customizations": {
"vscode": {
"settings": {
"terminal.integrated.defaultProfile.linux": "zsh",
"terminal.integrated.profiles.linux": {
"zsh": {
"path": "zsh"
}
}
},
"extensions": [
"golang.go"
]
}
}
}
35 changes: 35 additions & 0 deletions .github/workflows/devcontainer-build-and-push.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Dev Container Build and Push Image

on:
push:
branches:
master
paths:
- .github/workflows/devcontainer-build-and-push.yml
- '.github/.devcontainer/**'
pull_request:
paths:
- .github/workflows/devcontainer-build-and-push.yml
- '.github/.devcontainer/**'

jobs:
build-and-push-image:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Log in to the GitHub Container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Pre-build dev container image
uses: devcontainers/ci@v0.3
with:
subFolder: .github
imageName: ghcr.io/${{ github.repository }}
cacheFrom: ghcr.io/${{ github.repository }}
push: always

0 comments on commit f794403

Please sign in to comment.