File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -146,9 +146,12 @@ jobs:
146
146
- uses : actions/checkout@v2
147
147
with :
148
148
submodules : true
149
+ - name : Get branch name
150
+ id : branch-name
151
+ uses :
tj-actions/[email protected]
149
152
- name : Build image
150
153
run : |
151
- docker build --tag opendr/opendr-toolkit:cpu_test --file Dockerfile .
154
+ docker build --tag opendr/opendr-toolkit:cpu_test --build-arg branch=${{ steps.branch-name.outputs.current_branch }} -- file Dockerfile .
152
155
docker save opendr/opendr-toolkit:cpu_test > cpu_test.zip
153
156
- name : Upload image artifact
154
157
uses : actions/upload-artifact@v2
Original file line number Diff line number Diff line change 1
1
FROM ubuntu:20.04
2
2
3
+ ARG branch
4
+
3
5
# Install dependencies
4
6
RUN apt-get update && \
5
7
apt-get --yes install git sudo
@@ -12,7 +14,7 @@ RUN chmod +x /tini
12
14
ENTRYPOINT ["/tini" , "--" ]
13
15
14
16
# Clone the repo and install the toolkit
15
- RUN git clone --depth 1 --recurse-submodules -j8 https://github.com/opendr-eu/opendr
17
+ RUN git clone --depth 1 --recurse-submodules -j8 https://github.com/opendr-eu/opendr -b $branch
16
18
WORKDIR "/opendr"
17
19
RUN ./bin/install.sh
18
20
You can’t perform that action at this time.
0 commit comments