File tree Expand file tree Collapse file tree 4 files changed +23
-5
lines changed Expand file tree Collapse file tree 4 files changed +23
-5
lines changed Original file line number Diff line number Diff line change 1+ language : bash
2+
3+ # only build pushes to master
4+ # prs are build separately
5+ # https://docs.travis-ci.com/user/pull-requests/#how-pull-requests-are-built
6+ branches :
7+ only :
8+ - master
9+
10+ services :
11+ - docker
12+
13+ script :
14+ make build
Original file line number Diff line number Diff line change 1+ # 0.2.0-rust-1.32.0 (unreleased)
2+
3+ * Upgrade to Rust [ ` 1.32.0 ` ] ( https://blog.rust-lang.org/2019/01/17/Rust-1.32.0.html )
4+
15# 0.2.0-rust-1.31.1
26
3- * Upgrade to Rust ` 1.13.1 `
7+ * Upgrade to Rust [ ` 1.13.1 ` ] ( https://blog.rust-lang.org/2018/12/20/Rust-1.31.1.html )
48
59# 0.2.0-rust-1.31.0
610
Original file line number Diff line number Diff line change 1- # https://github.com/ilianaw/rust-crowbar/issues/20
21# https://github.com/lambci/docker-lambda#documentation
32FROM lambci/lambda:build-provided
4- RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain 1.31.1
3+ ARG RUST_VERSION
4+ RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $RUST_VERSION
55ADD build.sh /usr/local/bin/
66VOLUME ["/code" ]
77WORKDIR /code
Original file line number Diff line number Diff line change 11VERSION ?= 0.2.0
2- RUST_VERSION ?= 1.31.1
2+ RUST_VERSION ?= 1.32.0
33REPO ?= softprops/lambda-rust
44TAG ?= "$(REPO ) :$(VERSION ) -rust-$(RUST_VERSION ) "
55
@@ -8,5 +8,5 @@ publish: build
88 docker push $(REPO ) :latest
99
1010build :
11- docker build -t $(TAG ) .
11+ docker build --build-arg RUST_VERSION= $( RUST_VERSION ) - t $(TAG ) .
1212 docker tag $(TAG ) $(REPO ) :latest
You can’t perform that action at this time.
0 commit comments