chore: Update Dockerfile and Tags setup in docker-build.yml workflow
This commit is contained in:
parent
80ad50248e
commit
b35efc458d
1 changed files with 4 additions and 3 deletions
7
.github/workflows/docker-build.yml
vendored
7
.github/workflows/docker-build.yml
vendored
|
|
@ -42,8 +42,7 @@ jobs:
|
||||||
needs: setup
|
needs: setup
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
platform: [linux/amd64, linux/arm64/v8]
|
file: [./docker/build_and_push_base.Dockerfile, ]
|
||||||
file: [./docker/build_and_push.Dockerfile, ./docker/build_and_push_base.Dockerfile]
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
|
|
@ -58,10 +57,12 @@ jobs:
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: true
|
push: true
|
||||||
platforms: ${{ matrix.platform }}
|
platforms: "linux/amd64,linux/arm64/v8"
|
||||||
file: ${{ matrix.file }}
|
file: ${{ matrix.file }}
|
||||||
|
# base_rags if release_type is base, main_tags if release_type is main
|
||||||
tags: ${{ needs.setup.outputs.tags }}
|
tags: ${{ needs.setup.outputs.tags }}
|
||||||
|
|
||||||
|
|
||||||
build_components:
|
build_components:
|
||||||
if: ${{ inputs.release_type == 'main' }}
|
if: ${{ inputs.release_type == 'main' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue