Skip to content

Commit

Permalink
Improve .taskcluster.yml
Browse files Browse the repository at this point in the history
Add improvements from docker-exec-webclient-server
jwhitlock committed Feb 7, 2022

Verified

This commit was signed with the committer’s verified signature.
dyladan Daniel Dyla
1 parent 0d9be32 commit 342c120
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions .taskcluster.yml
Original file line number Diff line number Diff line change
@@ -41,20 +41,23 @@ tasks:
maxRunTime: 3600
env:
BUILDKIT_PROGRESS: plain # auto / tty is over-verbose
REPO_DIR: {$eval: as_slugid(proj_name + ":node:" + env.node_image_tag + ":tests")}
REPO_DIR: ${proj_name}
mounts:
- file: bin/docker-compose
content:
url: https://github.com/docker/compose/releases/download/v2.2.3/docker-compose-linux-x86_64
sha256: f15a7cd54a85f760a8ece92da63fb85b93036c72ead8056391b8a3fe9dc73134
command:
-
- /bin/bash
- -vxec
- >
git --version &&
git clone --no-progress "${repository}" "$REPO_DIR" &&
chmod a+wrx "$REPO_DIR" &&
cd "$REPO_DIR" &&
git config advice.detachedHead "false" &&
git checkout --no-progress "${head_rev}" &&
mkdir -p ~/bin &&
curl -sL "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o ~/bin/docker-compose &&
chmod +x ~/bin/docker-compose &&
~/bin/docker-compose build --build-arg "NODE_VERSION=${env.node_image_tag}" &&
~/bin/docker-compose run --rm test
- |
docker info
git --version
git clone --no-progress "${repository}" "$REPO_DIR"
cd "$REPO_DIR"
git config advice.detachedHead "false"
git checkout --no-progress "${head_rev}"
chmod a+x ../bin/docker-compose
../bin/docker-compose build --build-arg "NODE_VERSION=${env.node_image_tag}"
../bin/docker-compose run --rm test

0 comments on commit 342c120

Please sign in to comment.