Skip to content

Commit

Permalink
Merge pull request #272 from dapplink-labs/develop
Browse files Browse the repository at this point in the history
merge dev to main
  • Loading branch information
guoshijiang authored Sep 24, 2024
2 parents 718572b + 3fc0c2b commit a516edb
Show file tree
Hide file tree
Showing 99 changed files with 5,119 additions and 4,297 deletions.
14 changes: 0 additions & 14 deletions .github/CODEOWNERS

This file was deleted.

42 changes: 0 additions & 42 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

30 changes: 0 additions & 30 deletions .github/dependabot.yml

This file was deleted.

21 changes: 0 additions & 21 deletions .github/workflows/automated-tests.yml

This file was deleted.

33 changes: 0 additions & 33 deletions .github/workflows/build.yml

This file was deleted.

61 changes: 0 additions & 61 deletions .github/workflows/codeql.yml

This file was deleted.

50 changes: 50 additions & 0 deletions .github/workflows/deploy.yaml
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
46 changes: 0 additions & 46 deletions .github/workflows/golangci-lint.yml

This file was deleted.

20 changes: 0 additions & 20 deletions .github/workflows/gosec.yml

This file was deleted.

20 changes: 0 additions & 20 deletions .github/workflows/markdown-links.yml

This file was deleted.

34 changes: 0 additions & 34 deletions .github/workflows/security.yml

This file was deleted.

Loading

0 comments on commit a516edb

Please sign in to comment.