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 1616
1717# The script runs all CI builds and checks in a Docker container.
1818# 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.
2120# 2. A git revision (see man gitrevisions) to compare against HEAD to filter out modified and new
2221# files. Some scripts only run on that subset.
2322
@@ -28,11 +27,6 @@ CONTAINER_REPO=shiftcrypto/firmware_v2
2827CONTAINER_VERSION=$( cat .containerversion)
2928CONTAINER=$CONTAINER_REPO :${CONTAINER_VERSION}
3029
31- if [ " $1 " == " pull" ] ; then
32- docker pull " $CONTAINER "
33- exit 0
34- fi
35-
3630WORKSPACE_DIR=" $1 "
3731if [ -z " ${WORKSPACE_DIR} " ]; then
3832 echo " Workspace dir path is empty."
Original file line number Diff line number Diff line change 1818 fetch-tags : true
1919 submodules : recursive
2020 - name : Pull CI container image
21- run : ./.ci/run -container-ci pull
21+ run : ./.ci/pull -container
2222 - name : Run CI in container
2323 run : ./.ci/run-container-ci ${{github.workspace}} ${{ github.event.before }}
Original file line number Diff line number Diff line change 1515 fetch-depth : 0
1616
1717 - name : Pull container image
18- run : ./.ci/run -container-ci pull
18+ run : ./.ci/pull -container
1919
2020 - name : Run CI in container
2121 run : ./.ci/run-container-ci ${{github.workspace}} ${{ github.event.pull_request.base.sha }}
6767 git checkout -f ${{ github.event.pull_request.merge_commit_sha }} -- .ci .github
6868
6969 - name : Pull container image
70- run : ./.ci/run -container-ci pull
70+ run : ./.ci/pull -container
7171
7272 - name : Run CI in container
7373 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