forked from morion4000/webdollar-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-build.sh
executable file
·16 lines (12 loc) · 997 Bytes
/
docker-build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env bash
WEBDOLLAR_SHA=$( curl -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/webdollar/node-webdollar/commits/master/status | jq -r '.sha' )
ARGON_SHA=$( curl -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/webdollar/argon2/commits/master/status | jq -r '.sha' )
TAG=$(curl -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/webdollar/node-webdollar/releases/latest | jq -r '.tag_name' )
echo "$DOCKER_TOKEN" | docker login --username bwvolleyball --password-stdin
# shellcheck disable=SC2086
docker buildx build --platform=linux/amd64,linux/arm64,linux/arm/v6,linux/arm/v7 --push -t bwvolleyball/webdollar-miner-container:latest -t bwvolleyball/webdollar-miner-container:$TAG --build-arg WEBDOLLAR=$WEBDOLLAR_SHA --build-arg ARGON=$ARGON_SHA .
#docker image ls
#
#docker push bwvolleyball/webdollar-miner-container:latest
# shellcheck disable=SC2086
#docker push bwvolleyball/webdollar-miner-container:$TAG