ci: tag Docker images with version from package.json (latest + v2.6.2)

This commit is contained in:
Maurice
2026-03-28 16:43:41 +01:00
parent ee54d89144
commit a3b6a89471

View File

@@ -56,6 +56,12 @@ jobs:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v4
- name: Get version from package.json
id: version
run: echo "VERSION=$(node -p "require('./server/package.json').version")" >> $GITHUB_OUTPUT
- name: Download build digests
uses: actions/download-artifact@v4
with:
@@ -74,7 +80,7 @@ jobs:
working-directory: /tmp/digests
run: |
mapfile -t digests < <(printf 'mauriceboe/nomad@sha256:%s\n' *)
docker buildx imagetools create -t mauriceboe/nomad:latest "${digests[@]}"
docker buildx imagetools create -t mauriceboe/nomad:latest -t mauriceboe/nomad:${{ steps.version.outputs.VERSION }} "${digests[@]}"
- name: Inspect manifest
run: docker buildx imagetools inspect mauriceboe/nomad:latest