diff options
| author | Michael Peter Christen <mc@yacy.net> | 2025-06-21 13:14:44 +0200 |
|---|---|---|
| committer | Michael Peter Christen <mc@yacy.net> | 2025-06-21 13:14:44 +0200 |
| commit | 1563fcd3a82ecf6a1ce24ebd031aa532dc05001b (patch) | |
| tree | d5e19f0208c6663ec795080778069e6feae4dc3e /.github | |
| parent | 27dbf5a9e57c6db4054078d4304872b12b44b4a1 (diff) | |
also produce -ubuntu -tags for default images
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/build-docker-image.yaml | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/.github/workflows/build-docker-image.yaml b/.github/workflows/build-docker-image.yaml index c33806119..749ab03df 100644 --- a/.github/workflows/build-docker-image.yaml +++ b/.github/workflows/build-docker-image.yaml @@ -21,11 +21,13 @@ jobs: fail-fast: false matrix: include: - - tag: "" # Default Dockerfile - variant: "" # No suffix for Ubuntu + - tag: "" + suffix: "-ubuntu" + is_default: true platforms: linux/amd64,linux/arm64 - tag: alpine - variant: "-alpine" # Suffix for Alpine + suffix: "-alpine" + is_default: false platforms: linux/amd64,linux/arm64 runs-on: ubuntu-latest @@ -35,20 +37,17 @@ jobs: uses: docker/metadata-action@v5 with: # list of Docker images to use as base name for tags - # GitHub Container Registry & Docker Hub images: | - # ghcr.io/${{ github.repository }} ${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }} - # generate Docker tags based on the following events/attributes flavor: | - latest=${{ matrix.tag == '' }} - suffix=${{ matrix.variant }} # Adds "-alpine" suffix if needed + latest=${{ matrix.is_default }} + suffix=${{ matrix.suffix }} tags: | + type=raw,value=latest${{ matrix.suffix }},enable=${{ true }} type=sha type=semver,pattern={{version}} type=semver,pattern={{major}}.{{minor}} type=semver,pattern={{major}} - type=raw,value=latest,enable=${{ github.ref == 'refs/heads/master' }} - name: Login to Docker Hub if: github.event_name != 'pull_request' |
