-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
32 changed files
with
4,228 additions
and
1,334 deletions.
There are no files selected for viewing
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,26 @@ | ||
name: Deploy develop | ||
|
||
on: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
deploy: | ||
name: Deploy | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: darwinia-network/devops/actions/smart-vercel@main | ||
name: Deploy to Vercel | ||
with: | ||
node_version: 20 | ||
vercel_token: ${{ secrets.VERCEL_TOKEN }} | ||
vercel_group: itering | ||
workdir: packages/web | ||
dist_path: out | ||
preview_output: true | ||
project_name: migration-helper | ||
enable_cache: true | ||
enable_notify_comment: true | ||
|
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,28 @@ | ||
name: Deploy production | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
deploy: | ||
name: Deploy | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: darwinia-network/devops/actions/smart-vercel@main | ||
name: Deploy to Vercel | ||
with: | ||
node_version: 20 | ||
vercel_token: ${{ secrets.VERCEL_TOKEN }} | ||
vercel_group: itering | ||
workdir: packages/web | ||
dist_path: out | ||
preview_output: true | ||
project_name: migration-helper | ||
prod_mode: true | ||
enable_cache: true | ||
enable_notify_comment: true | ||
|
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,26 @@ | ||
name: Deploy staging | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
|
||
jobs: | ||
deploy: | ||
name: Deploy | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: darwinia-network/devops/actions/smart-vercel@main | ||
name: Deploy to Vercel | ||
with: | ||
node_version: 20 | ||
vercel_token: ${{ secrets.VERCEL_TOKEN }} | ||
vercel_group: itering | ||
workdir: packages/web | ||
dist_path: out | ||
preview_output: true | ||
project_name: migration-helper | ||
enable_cache: true | ||
enable_notify_comment: true | ||
|
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,48 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*" | ||
workflow_dispatch: | ||
|
||
env: | ||
DOCKER_REGISTRY: ghcr.io | ||
|
||
jobs: | ||
publish-docker-image: | ||
name: Publish docker image | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Docker login | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
registry: ${{ env.DOCKER_REGISTRY }} | ||
|
||
- name: Tag | ||
uses: olegtarasov/[email protected] | ||
- name: Sha | ||
uses: benjlevesque/[email protected] | ||
|
||
- name: Publish docker image | ||
uses: docker/build-push-action@v3 | ||
with: | ||
push: true | ||
context: packages/delegator | ||
file: Dockerfile | ||
tags: | | ||
${{ env.DOCKER_REGISTRY }}/${{ github.repository }}/delegator:sha-${{ env.SHA }} | ||
- name: Publish docker image with tag | ||
uses: docker/build-push-action@v3 | ||
if: startsWith(github.ref, 'refs/tags/v') | ||
with: | ||
push: true | ||
context: packages/delegator | ||
file: Dockerfile | ||
tags: | | ||
${{ env.DOCKER_REGISTRY }}/${{ github.repository }}/delegator:${{ env.GIT_TAG_NAME }} |
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 |
---|---|---|
|
@@ -16,3 +16,8 @@ node_modules | |
|
||
# Test data | ||
tmp | ||
|
||
out | ||
build | ||
dist | ||
tsconfig.tsbuildinfo |
Oops, something went wrong.