File tree Expand file tree Collapse file tree 2 files changed +12
-9
lines changed Expand file tree Collapse file tree 2 files changed +12
-9
lines changed Original file line number Diff line number Diff line change 4
4
push :
5
5
branches :
6
6
- main
7
+ pull_request :
8
+ branches :
9
+ - main
7
10
8
11
jobs :
9
12
docker :
32
35
uses : docker/build-push-action@v2
33
36
with :
34
37
context : .
35
- platforms : linux/amd64,linux/ arm64,linux/arm
36
- push : true
38
+ platforms : linux/arm64,linux/arm/v6
39
+ push : ${{ github.ref == 'refs/heads/master' }}
37
40
tags : texthtml/midi-synthesizer-autoconnect:latest
38
41
cache-from : type=gha
39
42
cache-to : type=gha,mode=max
Original file line number Diff line number Diff line change 1
- FROM rust:1.54-bullseye AS builder
1
+ FROM alpine AS builder
2
2
3
- WORKDIR /app
3
+ RUN apk add cargo --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing/
4
+
5
+ RUN apk add alsa-lib-dev
4
6
5
- RUN apt-get update && apt-get install -y libasound2-dev
7
+ WORKDIR /app
6
8
7
9
ADD .cargo /app/.cargo/
8
10
ADD Cargo.toml Cargo.lock .cargo /app/
@@ -16,11 +18,9 @@ ADD src /app/src/
16
18
RUN touch src/main.rs && \
17
19
cargo build --release --offline
18
20
19
- FROM debian:bullseye
21
+ FROM alpine
20
22
21
- RUN apt-get update && \
22
- apt-get install -y libasound2 && \
23
- rm -rf /var/lib/apt/lists/*
23
+ RUN apk add --no-cache libgcc alsa-lib
24
24
25
25
COPY --from=builder /app/target/release/midi-synthesizer-autoconnect /usr/bin/
26
26
You can’t perform that action at this time.
0 commit comments