Skip to content

Commit

Permalink
chore: 增加Docker 测试版构建流程
Browse files Browse the repository at this point in the history
  • Loading branch information
v03413 committed Dec 13, 2024
1 parent 5f0c8f2 commit 9683c29
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/docker-beta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
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 }}
File renamed without changes.

0 comments on commit 9683c29

Please sign in to comment.