Don't error when CERC_GO_AUTH_TOKEN isn't set (#574)
* Don't error when CERC_GO_AUTH_TOKEN isn't set * conditionally add ags
This commit is contained in:
parent
420b1c292b
commit
f4216419c4
@ -1,10 +1,8 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Build cerc/plugeth-statediff
|
# Build cerc/plugeth-statediff
|
||||||
source ${CERC_CONTAINER_BASE_DIR}/build-base.sh
|
source ${CERC_CONTAINER_BASE_DIR}/build-base.sh
|
||||||
# This container build currently requires access to private dependencies in gitea
|
# Pass Go auth token if present
|
||||||
# so we check that the necessary access token has been supplied here, then pass it o the build
|
if [[ -n "${CERC_GO_AUTH_TOKEN}" ]]; then
|
||||||
if [[ -z "${CERC_GO_AUTH_TOKEN}" ]]; then
|
build_command_args="${build_command_args} --build-arg GIT_VDBTO_TOKEN=${CERC_GO_AUTH_TOKEN}"
|
||||||
echo "ERROR: CERC_GO_AUTH_TOKEN is not set" >&2
|
|
||||||
exit 1
|
|
||||||
fi
|
fi
|
||||||
docker build -t cerc/plugeth-statediff:local ${build_command_args} --build-arg GIT_VDBTO_TOKEN=${CERC_GO_AUTH_TOKEN} ${CERC_REPO_BASE_DIR}/plugeth-statediff
|
docker build -t cerc/plugeth-statediff:local ${build_command_args} ${CERC_REPO_BASE_DIR}/plugeth-statediff
|
||||||
|
@ -1,10 +1,8 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Build cerc/plugeth
|
# Build cerc/plugeth
|
||||||
source ${CERC_CONTAINER_BASE_DIR}/build-base.sh
|
source ${CERC_CONTAINER_BASE_DIR}/build-base.sh
|
||||||
# This container build currently requires access to private dependencies in gitea
|
# Pass Go auth token if present
|
||||||
# so we check that the necessary access token has been supplied here, then pass it o the build
|
if [[ -n "${CERC_GO_AUTH_TOKEN}" ]]; then
|
||||||
if [[ -z "${CERC_GO_AUTH_TOKEN}" ]]; then
|
build_command_args="${build_command_args} --build-arg GIT_VDBTO_TOKEN=${CERC_GO_AUTH_TOKEN}"
|
||||||
echo "ERROR: CERC_GO_AUTH_TOKEN is not set" >&2
|
|
||||||
exit 1
|
|
||||||
fi
|
fi
|
||||||
docker build -t cerc/plugeth:local ${build_command_args} --build-arg GIT_VDBTO_TOKEN=${CERC_GO_AUTH_TOKEN} ${CERC_REPO_BASE_DIR}/plugeth
|
docker build -t cerc/plugeth:local ${build_command_args} ${CERC_REPO_BASE_DIR}/plugeth
|
||||||
|
@ -12,7 +12,7 @@ See `stacks/fixturenet-eth/README.md` for more information.
|
|||||||
* cerc/tx-spammer
|
* cerc/tx-spammer
|
||||||
|
|
||||||
## Deploy the stack
|
## Deploy the stack
|
||||||
Note: since some Go dependencies are currently private, `CERC_GO_AUTH_TOKEN` must be set to a valid Gitea access token before running the `build-containers` command.
|
Note: if there are any private Go dependencies, `CERC_GO_AUTH_TOKEN` must be set to a valid Gitea access token before running the `build-containers` command.
|
||||||
```
|
```
|
||||||
$ laconic-so --stack fixturenet-plugeth-tx setup-repositories
|
$ laconic-so --stack fixturenet-plugeth-tx setup-repositories
|
||||||
$ laconic-so --stack fixturenet-plugeth-tx build-containers
|
$ laconic-so --stack fixturenet-plugeth-tx build-containers
|
||||||
|
Loading…
Reference in New Issue
Block a user