Skip to content

explicit bin option #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 16 commits into from
Feb 10, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
integration tested
  • Loading branch information
softprops committed Jan 20, 2019
commit 97f8f18c22d0b039aa362e566b929803924da82a
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
tests
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
tests/test-func/test-out.log
target
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ services:
- docker

script:
make build
make test
11 changes: 7 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ REPO ?= softprops/lambda-rust
TAG ?= "$(REPO):$(VERSION)-rust-$(RUST_VERSION)"

publish: build
docker push $(TAG)
docker push $(REPO):latest
@docker push $(TAG)
@docker push $(REPO):latest

build:
docker build --build-arg RUST_VERSION=$(RUST_VERSION) -t $(TAG) .
docker tag $(TAG) $(REPO):latest
@docker build --build-arg RUST_VERSION=$(RUST_VERSION) -t $(TAG) .
@docker tag $(TAG) $(REPO):latest

test: build
@tests/test.sh
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ a `BIN` environment variable set to the name of the binary to be build and packa

```sh
$ docker run --rm \
-e BIN={your-binary-name}
-e BIN={your-binary-name} \
-v ${PWD}:/code \
-v ${HOME}/.cargo/registry:/root/.cargo/registry \
-v ${HOME}/.cargo/git:/root/.cargo/git \
Expand Down
Empty file added tests/test-func/.gitignore
Empty file.
Loading