File tree 4 files changed +23
-5
lines changed
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
+
1
5
# 0.2.0-rust-1.31.1
2
6
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 )
4
8
5
9
# 0.2.0-rust-1.31.0
6
10
Original file line number Diff line number Diff line change 1
- # https://github.com/ilianaw/rust-crowbar/issues/20
2
1
# https://github.com/lambci/docker-lambda#documentation
3
2
FROM 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
5
5
ADD build.sh /usr/local/bin/
6
6
VOLUME ["/code" ]
7
7
WORKDIR /code
Original file line number Diff line number Diff line change 1
1
VERSION ?= 0.2.0
2
- RUST_VERSION ?= 1.31.1
2
+ RUST_VERSION ?= 1.32.0
3
3
REPO ?= softprops/lambda-rust
4
4
TAG ?= "$(REPO ) :$(VERSION ) -rust-$(RUST_VERSION ) "
5
5
@@ -8,5 +8,5 @@ publish: build
8
8
docker push $(REPO ) :latest
9
9
10
10
build :
11
- docker build -t $(TAG ) .
11
+ docker build --build-arg RUST_VERSION= $( RUST_VERSION ) - t $(TAG ) .
12
12
docker tag $(TAG ) $(REPO ) :latest
You can’t perform that action at this time.
0 commit comments