mirror of
https://github.com/status-im/status-react.git
synced 2025-02-27 10:00:49 +00:00
ci: add Alchemy and Infura credentials in CI
Depends on: https://github.com/status-im/status-jenkins-lib/pull/64 Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
5655efa448
commit
78131c1028
@ -1,4 +1,4 @@
|
|||||||
library 'status-jenkins-lib@v1.7.2'
|
library 'status-jenkins-lib@v1.7.3'
|
||||||
|
|
||||||
/* Options section can't access functions in objects. */
|
/* Options section can't access functions in objects. */
|
||||||
def isPRBuild = utils.isPRBuild()
|
def isPRBuild = utils.isPRBuild()
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
library 'status-jenkins-lib@v1.7.2'
|
library 'status-jenkins-lib@v1.7.3'
|
||||||
|
|
||||||
pipeline {
|
pipeline {
|
||||||
agent { label 'linux' }
|
agent { label 'linux' }
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
library 'status-jenkins-lib@v1.7.2'
|
library 'status-jenkins-lib@v1.7.3'
|
||||||
|
|
||||||
/* Options section can't access functions in objects. */
|
/* Options section can't access functions in objects. */
|
||||||
def isPRBuild = utils.isPRBuild()
|
def isPRBuild = utils.isPRBuild()
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
library 'status-jenkins-lib@v1.7.2'
|
library 'status-jenkins-lib@v1.7.3'
|
||||||
|
|
||||||
pipeline {
|
pipeline {
|
||||||
agent { label params.AGENT_LABEL }
|
agent { label params.AGENT_LABEL }
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
library 'status-jenkins-lib@v1.7.2'
|
library 'status-jenkins-lib@v1.7.3'
|
||||||
|
|
||||||
/* Options section can't access functions in objects. */
|
/* Options section can't access functions in objects. */
|
||||||
def isPRBuild = utils.isPRBuild()
|
def isPRBuild = utils.isPRBuild()
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
library 'status-jenkins-lib@v1.7.2'
|
library 'status-jenkins-lib@v1.7.3'
|
||||||
|
|
||||||
pipeline {
|
pipeline {
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
library 'status-jenkins-lib@v1.7.2'
|
library 'status-jenkins-lib@v1.7.3'
|
||||||
|
|
||||||
pipeline {
|
pipeline {
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
library 'status-jenkins-lib@v1.7.2'
|
library 'status-jenkins-lib@v1.7.3'
|
||||||
|
|
||||||
pipeline {
|
pipeline {
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
library 'status-jenkins-lib@v1.7.2'
|
library 'status-jenkins-lib@v1.7.3'
|
||||||
|
|
||||||
pipeline {
|
pipeline {
|
||||||
agent { label 'macos' }
|
agent { label 'macos' }
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
library 'status-jenkins-lib@v1.7.2'
|
library 'status-jenkins-lib@v1.7.3'
|
||||||
|
|
||||||
pipeline {
|
pipeline {
|
||||||
agent { label 'linux' }
|
agent { label 'linux' }
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
library 'status-jenkins-lib@v1.7.2'
|
library 'status-jenkins-lib@v1.7.3'
|
||||||
|
|
||||||
pipeline {
|
pipeline {
|
||||||
agent {
|
agent {
|
||||||
|
@ -39,9 +39,22 @@ chmod 644 ${SECRETS_FILE_PATH}
|
|||||||
# If secrets file was created we want to remove it.
|
# If secrets file was created we want to remove it.
|
||||||
trap "rm -vf ${SECRETS_FILE_PATH}" EXIT ERR INT QUIT
|
trap "rm -vf ${SECRETS_FILE_PATH}" EXIT ERR INT QUIT
|
||||||
|
|
||||||
|
# Names of variables containing secrets to save in env file.
|
||||||
|
SECRETS_ENV_VARS=(
|
||||||
|
'ALCHEMY_ARBITRUM_GOERLI_TOKEN'
|
||||||
|
'ALCHEMY_ARBITRUM_MAINNET_TOKEN'
|
||||||
|
'ALCHEMY_OPTIMISM_GOERLI_TOKEN'
|
||||||
|
'ALCHEMY_OPTIMISM_MAINNET_TOKEN'
|
||||||
|
'INFURA_TOKEN'
|
||||||
|
'INFURA_TOKEN_SECRET'
|
||||||
|
'OPENSEA_API_KEY'
|
||||||
|
'POKT_TOKEN'
|
||||||
|
)
|
||||||
|
|
||||||
# Secrets like this can't be passed via args or they end up in derivation.
|
# Secrets like this can't be passed via args or they end up in derivation.
|
||||||
if [[ -n "${POKT_TOKEN}" ]]; then append_env_export 'POKT_TOKEN'; fi
|
for SECRET_VAR_NAME in "${SECRETS_ENV_VARS[@]}"; do
|
||||||
if [[ -n "${OPENSEA_API_KEY}" ]]; then append_env_export 'OPENSEA_API_KEY'; fi
|
[[ -n "${!SECRET_VAR_NAME}" ]] && append_env_export "${SECRET_VAR_NAME}"
|
||||||
|
done
|
||||||
|
|
||||||
# If no secrets were passed there's no need to pass the 'secretsFile'.
|
# If no secrets were passed there's no need to pass the 'secretsFile'.
|
||||||
if [[ -s "${SECRETS_FILE_PATH}" ]]; then
|
if [[ -s "${SECRETS_FILE_PATH}" ]]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user