perf: 优化增加支持易支付Get创建请求 #14
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
name: docker-beta | |
on: | |
push: | |
branches: | |
- '**' # 表示所有分支 | |
tags-ignore: | |
- '*' # 忽略所有标签 | |
pull_request: | |
branches: | |
- '**' # 表示所有分支 | |
env: | |
APP_NAME: bepusdt | |
DOCKER_HUB_USER: v03413 | |
DOCKER_HUB_REPO: v03413/bepusdt | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Login to DockerHub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ env.DOCKER_HUB_USER }} | |
password: ${{ secrets.DOCKER_HUB_BETA_TOKEN }} | |
- name: Generate App Version | |
run: echo "APP_VERSION=$(git rev-parse HEAD | cut -c 1-6)" >> $GITHUB_ENV | |
- name: Build and push | |
uses: docker/build-push-action@v6 | |
with: | |
context: . | |
platforms: | | |
linux/amd64 | |
push: true | |
build-args: | | |
APP_NAME=${{ env.APP_NAME }} | |
APP_VERSION=${{ env.APP_VERSION }} | |
tags: | | |
${{ env.DOCKER_HUB_REPO }}:beta | |
${{ env.DOCKER_HUB_REPO }}:beta-${{ env.APP_VERSION }} |