File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 17
17
- name : Build and push
18
18
uses : docker/build-push-action@v6
19
19
with :
20
- tags : manio/aa-proxy-rs:latest
20
+ build-args : |
21
+ GH_BRANCH=${{ github.ref_name }}
22
+ tags : manio/aa-proxy-rs:${{ github.ref_name }}
21
23
allow : security.insecure
22
24
outputs : build
23
25
- name : Upload a Build Artifact
Original file line number Diff line number Diff line change 1
1
# syntax=docker/dockerfile:1-labs
2
+ ARG GH_BRANCH=main
2
3
FROM rust:latest AS stage-rust
3
4
# crosscompile stuff
4
5
RUN apt update && apt upgrade -y
5
6
RUN apt install -y gcc-arm-linux-gnueabihf
6
7
RUN rustup target add arm-unknown-linux-gnueabihf
7
8
# cloning and building
8
9
WORKDIR /usr/src/app
9
- RUN git clone --branch bt-tryfix https://github.com/manio/aa-proxy-rs .
10
+ RUN git clone --branch "$GH_BRANCH" --single-branch https://github.com/manio/aa-proxy-rs .
10
11
RUN cargo build --release
11
12
RUN arm-linux-gnueabihf-strip target/arm-unknown-linux-gnueabihf/release/aa-proxy-rs
12
13
# Pi Zero W needs special linking/building (https://github.com/manio/aa-proxy-rs/issues/3)
You can’t perform that action at this time.
0 commit comments