-
Notifications
You must be signed in to change notification settings - Fork 130
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
2 changed files
with
46 additions
and
0 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,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.