Skip to content

Commit

Permalink
ci: container image and testnet deployment integrated to all relevant…
Browse files Browse the repository at this point in the history
… stages of the pipeline

* `integration:deployment` - deploys to testenet
* `integration:prerelease` - deploys to GitLab container registry as `testnet`
* `release:deployment:branch` - deploys to mainnet
* `release:deployment:tag` - deploys to mainnet
* `release:distribution` - deploys to GitLab container registry as `mainnet`

mainnet deployment is still a stub
  • Loading branch information
CMCDragonkai committed Jul 11, 2022
1 parent d555a9e commit 2df69eb
Show file tree
Hide file tree
Showing 8 changed files with 330 additions and 172 deletions.
45 changes: 16 additions & 29 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,32 +1,3 @@
# Set the TMPDIR to be used
TMPDIR="$TMPDIR"

# Accessing AWS for testnet.polykey.io and mainnet.polykey.io deployment
AWS_DEFAULT_REGION='ap-southeast-2'
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=

# Container registry domain
CONTAINER_REGISTRY='015248367786.dkr.ecr.ap-southeast-2.amazonaws.com'

# Container repository
CONTAINER_REPOSITORY="$CONTAINER_REGISTRY/polykey"

# Accessing ECR for testnet.polykey.io and mainnet.polykey.io
# Path to container registry authentication file used by `skopeo`
# The file has the same contents as `DOCKER_AUTH_CONFIG`
# Use this command to acquire the auth file at `./tmp/auth.json`:
# ```
# aws ecr get-login-password --region ap-southeast-2 \
# | \
# skopeo login \
# --username AWS \
# --password-stdin \
# $CONTAINER_REPOSITORY \
# --authfile=./tmp/auth.json
# ```
# REGISTRY_AUTH_FILE=

# Unused atm (jest sets this to `test`)
NODE_ENV=development

Expand All @@ -41,3 +12,19 @@ NODE_ENV=development

# If set, indicates that `PK_TEST_COMMAND` is targetting docker
# PK_TEST_COMMAND_DOCKER=
# Accessing AWS for testnet.polykey.io and mainnet.polykey.io deployment
AWS_DEFAULT_REGION='ap-southeast-2'
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=

# Path to container registry authentication file used by `skopeo`
# The file has the same contents as `DOCKER_AUTH_CONFIG`
# Use this command to acquire the auth file at `./tmp/auth.json`:
# ```
# printf 'PASSWORD' | skopeo login \
# --username 'USERNAME' \
# --password-stdin \
# $CI_REGISTRY_IMAGE \
# --authfile=./tmp/auth.json
# ```
# REGISTRY_AUTH_FILE=
Loading

0 comments on commit 2df69eb

Please sign in to comment.