ci: 启用Docker镜像构建和推送步骤
取消注释Docker构建和推送配置,恢复多平台镜像构建功能, 支持linux/amd64和linux/arm64架构的镜像推送
This commit is contained in:
22
.github/workflows/docker-build.yml
vendored
22
.github/workflows/docker-build.yml
vendored
@@ -45,14 +45,14 @@ jobs:
|
|||||||
type=raw,value=beta,enable=${{ endsWith(github.ref, '-beta') }}
|
type=raw,value=beta,enable=${{ endsWith(github.ref, '-beta') }}
|
||||||
type=raw,value=latest,enable=${{ !contains(github.ref, '-') }}
|
type=raw,value=latest,enable=${{ !contains(github.ref, '-') }}
|
||||||
|
|
||||||
# - name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
# id: build
|
id: build
|
||||||
# uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
# with:
|
with:
|
||||||
# context: .
|
context: .
|
||||||
# platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
# push: true
|
push: true
|
||||||
# tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
# labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
# build-args: |
|
build-args: |
|
||||||
# VERSION=${{ github.ref_name }}
|
VERSION=${{ github.ref_name }}
|
||||||
|
Reference in New Issue
Block a user