Skip to content

Commit

Permalink
fix creating manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
sni committed Jan 25, 2025
1 parent 072ee9e commit 363e63f
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
- '*'
workflow_dispatch:

# set docker tag for all steps
env:
DOCKERTAG: nightly

jobs:
docker_build:
runs-on: ${{ matrix.target.runs }}
Expand Down Expand Up @@ -48,7 +52,7 @@ jobs:
push: true
file: Dockerfile.omd-labs-${{ matrix.os }}
build-args: OMD_VERSION=${{ github.ref }}
tags: consol/omd-labs-${{ matrix.os }}:nightly-${{ matrix.target.platform }}
tags: consol/omd-labs-${{ matrix.os }}:${{ env.DOCKERTAG }}-${{ matrix.target.platform }}
platforms: linux/${{ matrix.target.platform }}

- name: Build to ghcr.io
Expand All @@ -57,7 +61,7 @@ jobs:
push: true
file: Dockerfile.omd-labs-${{ matrix.os }}
build-args: OMD_VERSION=${{ github.ref }}
tags: ghcr.io/consol/omd-labs-docker/omd-labs-${{ matrix.os }}:nightly-${{ matrix.target.platform }}
tags: ghcr.io/consol/omd-labs-docker/omd-labs-${{ matrix.os }}:${{ env.DOCKERTAG }}-${{ matrix.target.platform }}
platforms: linux/${{ matrix.target.platform }}

manifest:
Expand Down Expand Up @@ -90,10 +94,10 @@ jobs:

- name: push manifest to dockerhub
run: |
docker manifest create consol/omd-labs-${{ matrix.os }} consol/omd-labs-${{ matrix.os }}-amd64 consol/omd-labs-${{ matrix.os }}-arm64
docker manifest push consol/omd-labs-${{ matrix.os }}
docker manifest create consol/omd-labs-${{ matrix.os }}:${{ env.DOCKERTAG }} consol/omd-labs-${{ matrix.os }}:${{ env.DOCKERTAG }}-amd64 consol/omd-labs-${{ matrix.os }}:${{ env.DOCKERTAG }}-arm64
docker manifest push consol/omd-labs-${{ matrix.os }}:${{ env.DOCKERTAG }}
- name: push manifest to github
run: |
docker manifest create ghcr.io/consol/omd-labs-docker/omd-labs-${{ matrix.os }} ghcr.io/consol/omd-labs-docker/omd-labs-${{ matrix.os }}-amd64 consol/omd-labs-${{ matrix.os }}-arm64
docker manifest push ghcr.io/consol/omd-labs-docker/omd-labs-${{ matrix.os }}
docker manifest create ghcr.io/consol/omd-labs-docker/omd-labs-${{ matrix.os }}:${{ env.DOCKERTAG }} ghcr.io/consol/omd-labs-docker/omd-labs-${{ matrix.os }}:${{ env.DOCKERTAG }}-amd64 consol/omd-labs-${{ matrix.os }}:${{ env.DOCKERTAG }}-arm64
docker manifest push ghcr.io/consol/omd-labs-docker/omd-labs-${{ matrix.os }}:${{ env.DOCKERTAG }}

0 comments on commit 363e63f

Please sign in to comment.