Skip to content

Commit

Permalink
revert dev container and update makefile; use make target in github a…
Browse files Browse the repository at this point in the history
…ction
  • Loading branch information
suprjinx committed Jul 18, 2023
1 parent 84626c4 commit f11c523
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 14 deletions.
3 changes: 1 addition & 2 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ USER vscode
RUN go install github.com/vektra/mockery/v2@v2.30.16 \
&& go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.53.3 \
&& go install golang.org/x/tools/cmd/goimports@v0.11.0 \
&& go install mvdan.cc/gofumpt@v0.5.0 \
&& go install github.com/goreleaser/goreleaser@v1.18.2
&& go install mvdan.cc/gofumpt@v0.5.0
USER root

# [Optional] Uncomment this line to install global node packages.
Expand Down
13 changes: 2 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,8 @@ jobs:
uses: actions/checkout@v3

- name: Run goreleaser in docker
run: |
docker run \
--rm \
-e CGO_ENABLED=1 \
-v /var/run/docker.sock:/var/run/docker.sock \
-v `pwd`:/go/src/fasttrackml \
-v `pwd`/sysroot:/sysroot \
-w /go/src/fasttrackml \
ghcr.io/goreleaser/goreleaser-cross:v1.20 \
release --snapshot --clean
run: make release

- name: Upload release assets
uses: softprops/action-gh-release@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ run: build ## run the FastTrackML server
./$(APP) server

PHONY: release
release:
release: ## use goreleaser to cross-compile the executables on various os/arch combos
docker run \
--rm \
-e CGO_ENABLED=1 \
Expand Down

0 comments on commit f11c523

Please sign in to comment.