Skip to content

Commit b5f256d

Browse files
committed
Do no push the image for dev-container docker build
1 parent 1e634a8 commit b5f256d

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/devcontainer.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,5 @@ jobs:
1515
- name: Build dev container
1616
uses: devcontainers/[email protected]
1717
with:
18-
runCmd: |
19-
go version
20-
go build ./...
21-
18+
push: never
19+
runCmd: make build

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ ide:
66
@echo "Opening IDE..."
77
devcontainer open
88

9+
build:
10+
@echo "Building project..."
11+
go build .
12+
913
run:
1014
@echo "Running server..."
11-
go run main.go
15+
go run .

0 commit comments

Comments
 (0)