File tree Expand file tree Collapse file tree 4 files changed +12
-10
lines changed Expand file tree Collapse file tree 4 files changed +12
-10
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -e
4
+
5
+ CONTAINER_REPO=shiftcrypto/firmware_v2
6
+ CONTAINER_VERSION=$( cat .containerversion)
7
+
8
+ docker pull $CONTAINER_REPO :$CONTAINER_VERSION
Original file line number Diff line number Diff line change 16
16
17
17
# The script runs all CI builds and checks in a Docker container.
18
18
# It accepts two positional arguments:
19
- # 1. A workspace dir, the root of the git repo clone, or "pull" literal.
20
- # In the latter case, CI container image is pulled from a registry.
19
+ # 1. A workspace dir, the root of the git repo clone, to be mounted in the container.
21
20
# 2. A git revision (see man gitrevisions) to compare against HEAD to filter out modified and new
22
21
# files. Some scripts only run on that subset.
23
22
@@ -28,11 +27,6 @@ CONTAINER_REPO=shiftcrypto/firmware_v2
28
27
CONTAINER_VERSION=$( cat .containerversion)
29
28
CONTAINER=$CONTAINER_REPO :${CONTAINER_VERSION}
30
29
31
- if [ " $1 " == " pull" ] ; then
32
- docker pull " $CONTAINER "
33
- exit 0
34
- fi
35
-
36
30
WORKSPACE_DIR=" $1 "
37
31
if [ -z " ${WORKSPACE_DIR} " ]; then
38
32
echo " Workspace dir path is empty."
Original file line number Diff line number Diff line change 18
18
fetch-tags : true
19
19
submodules : recursive
20
20
- name : Pull CI container image
21
- run : ./.ci/run -container-ci pull
21
+ run : ./.ci/pull -container
22
22
- name : Run CI in container
23
23
run : ./.ci/run-container-ci ${{github.workspace}} ${{ github.event.before }}
Original file line number Diff line number Diff line change 15
15
fetch-depth : 0
16
16
17
17
- name : Pull container image
18
- run : ./.ci/run -container-ci pull
18
+ run : ./.ci/pull -container
19
19
20
20
- name : Run CI in container
21
21
run : ./.ci/run-container-ci ${{github.workspace}} ${{ github.event.pull_request.base.sha }}
67
67
git checkout -f ${{ github.event.pull_request.merge_commit_sha }} -- .ci .github
68
68
69
69
- name : Pull container image
70
- run : ./.ci/run -container-ci pull
70
+ run : ./.ci/pull -container
71
71
72
72
- name : Run CI in container
73
73
run : ./.ci/run-container-ci ${{github.workspace}} ${{ github.event.pull_request.base.sha }}
You can’t perform that action at this time.
0 commit comments