update 重命名 dockerfile #3
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: alpine构建 | |
on: | |
push: | |
branches: [ 'main' ] | |
paths: [ 'dockerfiles/alpine.Dockerfile' ] | |
jobs: | |
build_docker: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 设置QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: 设置Docker BuildX | |
uses: docker/setup-buildx-action@v3 | |
- name: 登录到DockerHub | |
uses: docker/login-action@v3 | |
with: | |
username: dr34m | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: 构建并推送 | |
uses: docker/build-push-action@v6 | |
with: | |
file: dockerfiles/alpine.Dockerfile | |
push: true | |
tags: dr34m/tao-sync:not-for-use-alpine | |
platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/386,linux/arm/v6,linux/s390x,linux/ppc64le |