summaryrefslogtreecommitdiff
path: root/.github/workflows/build-docker-image.yaml
diff options
context:
space:
mode:
authorMister_X <MisterX2000@users.noreply.github.com>2025-04-02 01:08:54 +0200
committerMister_X <MisterX2000@users.noreply.github.com>2025-04-02 01:08:54 +0200
commit3d8db799bc90fbd21a17280b2a85c9535cacace0 (patch)
tree1d4f8cb68d865704a01ac774e606d11b1e653813 /.github/workflows/build-docker-image.yaml
parent8482e5212b8252e77df78b4434380fe569d73878 (diff)
fix tags
Diffstat (limited to '.github/workflows/build-docker-image.yaml')
-rw-r--r--.github/workflows/build-docker-image.yaml21
1 files changed, 15 insertions, 6 deletions
diff --git a/.github/workflows/build-docker-image.yaml b/.github/workflows/build-docker-image.yaml
index 6b82fe18f..82a65cf71 100644
--- a/.github/workflows/build-docker-image.yaml
+++ b/.github/workflows/build-docker-image.yaml
@@ -22,14 +22,19 @@ jobs:
dockerfile:
- name: Dockerfile
tag:
+ platform: linux/amd64
- name: Dockerfile.aarch64
- tag: aarch64-
+ tag: aarch64
+ platform: linux/arm64
- name: Dockerfile.alpine
- tag: alpine-
+ tag: alpine
+ platform: linux/amd64,linux/arm64
- name: Dockerfile.ArchLinux
- tag: archlinux-
+ tag: archlinux
+ platform: linux/amd64,linux/arm64
- name: Dockerfile.armv7
- tag: armv7-
+ tag: armv7
+ platform: linux/arm/v7
runs-on: ubuntu-latest
steps:
- name: Docker meta
@@ -40,6 +45,10 @@ jobs:
images: |
ghcr.io/MisterX2000/yacy_search_server
# generate Docker tags based on the following events/attributes
+ flavor: |
+ latest=auto
+ prefix=
+ suffix=-${{ matrix.dockerfile.tag }}
tags: |
type=schedule
type=ref,event=branch
@@ -66,10 +75,10 @@ jobs:
- name: Build and push
uses: docker/build-push-action@v6
with:
- platforms: linux/amd64,linux/arm64
+ platforms: ${{ matrix.dockerfile.platform }}
file: docker/${{ matrix.dockerfile.name }}
push: ${{ github.event_name != 'pull_request' }}
- tags: ${{ matrix.dockerfile.tag }}${{ steps.meta.outputs.tags }}
+ tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max \ No newline at end of file