Skip to content

Commit 07a0ddf

Browse files
mount aws gitconfig and ssh into devcontainer
1 parent 18393e6 commit 07a0ddf

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

.devcontainer/devcontainer.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
}
1515
},
1616
"mounts": [
17-
// "source=/Users/user/.aws,target=/home/vscode/.aws,type=bind,consistency=cached",
17+
"source=${localEnv:HOME}/.aws,target=/home/vscode/.aws,type=bind,consistency=cached",
18+
"source=${localEnv:HOME}/.gitconfig,target=/home/vscode/.gitconfig,type=bind,consistency=cached",
19+
"source=${localEnv:HOME}/.ssh,target=/home/vscode/.ssh,type=bind,consistency=cached"
1820
],
1921
"forwardPorts": [
2022
5050,

.github/workflows/build.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Build
2+
on:
3+
push:
4+
branches:
5+
- '**'
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
12+
13+
steps:
14+
- name: Install Docker Buildx
15+
uses: docker/setup-buildx-action@v2
16+
- name: Checkout Repo
17+
uses: actions/checkout@v4
18+
- name: Build Docker image
19+
working-directory: ./app
20+
run: |
21+
docker buildx build \
22+
--platform linux/amd64,linux/arm64 \
23+
.

0 commit comments

Comments
 (0)