Skip to content

Commit

Permalink
feat: 🎸 build for amd64 only
Browse files Browse the repository at this point in the history
  • Loading branch information
hcfw007 committed Nov 26, 2024
1 parent f186bbf commit 67a2bc9
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 43 deletions.
20 changes: 1 addition & 19 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ jobs:
include:
- arch: amd64
runner: ubuntu-latest
- arch: arm64
runner: [self-hosted, linux, ARM64]

steps:
- name: Checkout Repositories
uses: actions/checkout@v2
Expand Down Expand Up @@ -111,20 +110,3 @@ jobs:
ref: 'refs/tags/v${{ needs.prepare.outputs.version }}',
sha: context.sha
})
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: cn-northwest-1

- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1

- name: Check and build manifest
run: sh ./script/push-manifest.sh
env:
VERSION: ${{ needs.prepare.outputs.version }}
IMAGE_NAME: ${{ needs.prepare.outputs.image }}
2 changes: 1 addition & 1 deletion script/build_ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e
imageName=$IMAGE_NAME
ECR_URL=789252305933.dkr.ecr.cn-northwest-1.amazonaws.com.cn

IMAGE_TAG="$PACKAGE_VERSION-$ARCH"
IMAGE_TAG="$PACKAGE_VERSION"

echo current package version: "$PACKAGE_VERSION"

Expand Down
23 changes: 0 additions & 23 deletions script/push-manifest.sh

This file was deleted.

4 changes: 4 additions & 0 deletions src/auth/auth.module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { Module } from '@nestjs/common'

@Module({})
export class AuthModule {}
3 changes: 3 additions & 0 deletions src/config/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@ export class AppConfig {

// base
port: number
tiktokBaseUrl: string

constructor() {
this.port = parseInt(process.env.PORT) || 3000
this.tiktokBaseUrl =
process.env.TIKTOK_BASE_URL || 'https://business-api.tiktok.com/open_api/'
}
}
Empty file added src/model/tiktok.ts
Empty file.

0 comments on commit 67a2bc9

Please sign in to comment.