Skip to content

Commit

Permalink
Update the linux builder image
Browse files Browse the repository at this point in the history
  • Loading branch information
eeclfrei committed Aug 30, 2021
1 parent cb9dbff commit c05e7ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
11 changes: 0 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,6 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v1
with:
install: true
driver-opts: network=host
- name: Login to Harbor
uses: docker/login-action@v1
with:
registry: harbor.prod-aws.phylum.dev
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Build Linux
run: docker build lib/ --file lib/Dockerfile.linux --tag static-build
- name: Build MacOS
Expand Down
6 changes: 3 additions & 3 deletions lib/Dockerfile.linux
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ ARG RUST_TARGET=x86_64-unknown-linux-musl
# We use a multi-stage build here to get access to a full system when building
# but still run in a scratch image
#
FROM harbor.prod-aws.phylum.dev/phylum/rust/rust-musl:1.54.0 as planner
FROM phylumdev/rust-musl-builder:1.54.0 as planner
ARG APP_PATH
ARG CARGO_HOME
USER root
Expand All @@ -22,7 +22,7 @@ RUN cargo install cargo-chef
COPY . .
RUN cargo chef prepare --recipe-path recipe.json

FROM harbor.prod-aws.phylum.dev/phylum/rust/rust-musl:1.54.0 as cacher
FROM phylumdev/rust-musl-builder:1.54.0 as cacher
ARG APP_PATH
ARG CARGO_HOME
USER root
Expand All @@ -31,7 +31,7 @@ RUN cargo install cargo-chef
COPY --from=planner ${APP_PATH}/recipe.json recipe.json
RUN cargo chef cook --release --recipe-path recipe.json

FROM harbor.prod-aws.phylum.dev/phylum/rust/rust-musl:1.54.0
FROM phylumdev/rust-musl-builder:1.54.0
ARG APP_PATH
ARG CARGO_HOME
USER root
Expand Down

0 comments on commit c05e7ef

Please sign in to comment.