Skip to content

Commit 40dba12

Browse files
committed
Temporary test
1 parent a577a89 commit 40dba12

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

Diff for: .github/workflows/tests_suite.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,12 @@ jobs:
146146
- uses: actions/checkout@v2
147147
with:
148148
submodules: true
149+
- name: Get branch name
150+
id: branch-name
151+
uses: tj-actions/[email protected]
149152
- name: Build image
150153
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 .
152155
docker save opendr/opendr-toolkit:cpu_test > cpu_test.zip
153156
- name: Upload image artifact
154157
uses: actions/upload-artifact@v2

Diff for: Dockerfile

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
FROM ubuntu:20.04
22

3+
ARG branch
4+
35
# Install dependencies
46
RUN apt-get update && \
57
apt-get --yes install git sudo
@@ -12,7 +14,7 @@ RUN chmod +x /tini
1214
ENTRYPOINT ["/tini", "--"]
1315

1416
# 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
1618
WORKDIR "/opendr"
1719
RUN ./bin/install.sh
1820

0 commit comments

Comments
 (0)