-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #272 from dapplink-labs/develop
merge dev to main
- Loading branch information
Showing
99 changed files
with
5,119 additions
and
4,297 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: WalletChainNode Image Build Only | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
environment: | ||
type: choice | ||
description: environment to choice | ||
options: | ||
- testnet | ||
- mainnet | ||
env: | ||
AWS_REGION : "ap-southeast-1" | ||
app: wallet-chain-node | ||
permissions: | ||
id-token: write | ||
contents: read | ||
run-name: Build Image For Repo | ||
jobs: | ||
build: | ||
runs-on: self-hosted | ||
outputs: | ||
commit_sha: ${{ steps.get-commit-sha.outputs.commit_sha }} | ||
ecr_registry: ${{ steps.login-ecr.outputs.registry }} | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
- name: Get Commit Sha | ||
id: get-commit-sha | ||
run: | | ||
echo "::set-output name=commit_sha::$(git rev-parse --short=7 HEAD)" | ||
- name: deploy app | ||
run: | | ||
registry="hkccr.ccs.tencentyun.com" | ||
namespace="dapplink" | ||
appname="wallet-chain-node" | ||
tag_name="${registry}/${namespace}/${appname}" | ||
docker login --username=100003588471 -p dapplink@go hkccr.ccs.tencentyun.com | ||
docker build --pull -t ${tag_name}:v1 . | ||
docker push ${tag_name}:v1 | ||
HELM_OPTS="${HELM_OPTS} --set image.repository=${tag_name}" | ||
HELM_OPTS="${HELM_OPTS} --set image.tag=v1" | ||
if [ ${{github.event.inputs.environment }} == "testnet" ]; then | ||
helm template ${{ env.app }} -f values.yaml charts ${HELM_OPTS} | ||
helm upgrade --install ${{ env.app }} -f values.yaml charts ${HELM_OPTS} | ||
else | ||
helm template ${{ env.app }} -f values.yaml charts -n mainnet ${HELM_OPTS} | ||
helm upgrade --install ${{ env.app }} -f values.yaml charts -n mainnet ${HELM_OPTS} | ||
fi | ||
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.