Skip to content

Commit

Permalink
chore: add release using docker (#1690)
Browse files Browse the repository at this point in the history
  • Loading branch information
aallam authored Jul 4, 2023
1 parent 98c549e commit 1a6ca3d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ RUN apt-get update && apt-get install -y \
unzip \
# python is used by nvm to install some packages
python3 \
git \
&& rm -rf /var/lib/apt/lists/*

# Go
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"docker:build": "./scripts/docker/build.sh",
"docker:clean": "docker stop api-clients-automation; docker rm -f api-clients-automation; docker image rm -f api-clients-automation",
"docker:mount": "./scripts/docker/mount.sh",
"docker:release": "docker exec -e GITHUB_TOKEN=$GITHUB_TOKEN -it api-clients-automation bash -lc \"yarn release\"",
"docker:setup": "yarn docker:clean && yarn docker:build && yarn docker:mount",
"fix:json": "eslint --ext=json . --fix",
"github-actions:lint": "eslint --ext=yml .github/",
Expand Down
4 changes: 3 additions & 1 deletion scripts/docker/mount.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@

ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)/../.."

docker run -d -it --name api-clients-automation --mount type=bind,source=$ROOT/,target=/app api-clients-automation
docker run -d -it --name api-clients-automation \
-v ~/.ssh:/root/.ssh:ro \
--mount type=bind,source=$ROOT/,target=/app api-clients-automation

0 comments on commit 1a6ca3d

Please sign in to comment.