Update workflows
This commit is contained in:
parent
fccb613aa0
commit
8d13cf5ca1
7
.github/workflows/build&push.yaml
vendored
7
.github/workflows/build&push.yaml
vendored
@ -52,6 +52,7 @@ jobs:
|
|||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
build-args: ${{steps.version_step.outputs.version}}
|
build-args: ${{steps.version_step.outputs.version}}
|
||||||
|
|
||||||
push_to_multi_platforms_registry:
|
push_to_multi_platforms_registry:
|
||||||
name: Push Docker image to Docker Hub
|
name: Push Docker image to Docker Hub
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -83,6 +84,10 @@ jobs:
|
|||||||
uses: docker/metadata-action@v3
|
uses: docker/metadata-action@v3
|
||||||
with:
|
with:
|
||||||
images: nacos/nacos-server
|
images: nacos/nacos-server
|
||||||
|
flavor: |
|
||||||
|
latest=false
|
||||||
|
tags: |
|
||||||
|
- type=semver,pattern={{version}}-slim
|
||||||
|
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
uses: docker/build-push-action@v2.3.0
|
uses: docker/build-push-action@v2.3.0
|
||||||
@ -91,6 +96,6 @@ jobs:
|
|||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
file: build/Dockerfile.Slim
|
file: build/Dockerfile.Slim
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ steps.meta.outputs.tags }}-slim
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
build-args: ${{steps.version_step.outputs.version}}
|
build-args: ${{steps.version_step.outputs.version}}
|
||||||
|
Loading…
Reference in New Issue
Block a user