Skip to content

Commit 342c120

Browse files
committed
Improve .taskcluster.yml
Add improvements from docker-exec-webclient-server
1 parent 0d9be32 commit 342c120

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

.taskcluster.yml

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -41,20 +41,23 @@ tasks:
4141
maxRunTime: 3600
4242
env:
4343
BUILDKIT_PROGRESS: plain # auto / tty is over-verbose
44-
REPO_DIR: {$eval: as_slugid(proj_name + ":node:" + env.node_image_tag + ":tests")}
44+
REPO_DIR: ${proj_name}
45+
mounts:
46+
- file: bin/docker-compose
47+
content:
48+
url: https://github.com/docker/compose/releases/download/v2.2.3/docker-compose-linux-x86_64
49+
sha256: f15a7cd54a85f760a8ece92da63fb85b93036c72ead8056391b8a3fe9dc73134
4550
command:
4651
-
4752
- /bin/bash
4853
- -vxec
49-
- >
50-
git --version &&
51-
git clone --no-progress "${repository}" "$REPO_DIR" &&
52-
chmod a+wrx "$REPO_DIR" &&
53-
cd "$REPO_DIR" &&
54-
git config advice.detachedHead "false" &&
55-
git checkout --no-progress "${head_rev}" &&
56-
mkdir -p ~/bin &&
57-
curl -sL "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o ~/bin/docker-compose &&
58-
chmod +x ~/bin/docker-compose &&
59-
~/bin/docker-compose build --build-arg "NODE_VERSION=${env.node_image_tag}" &&
60-
~/bin/docker-compose run --rm test
54+
- |
55+
docker info
56+
git --version
57+
git clone --no-progress "${repository}" "$REPO_DIR"
58+
cd "$REPO_DIR"
59+
git config advice.detachedHead "false"
60+
git checkout --no-progress "${head_rev}"
61+
chmod a+x ../bin/docker-compose
62+
../bin/docker-compose build --build-arg "NODE_VERSION=${env.node_image_tag}"
63+
../bin/docker-compose run --rm test

0 commit comments

Comments
 (0)