From 2ecbf8e7e28cf99d82b8150e1baadb5ef55cea48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=A4fer?= Date: Tue, 29 Oct 2024 21:43:15 +0100 Subject: [PATCH] add docker label `ocelot-version` --- .github/workflows/publish.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 3e1e651..4f16f74 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -32,6 +32,8 @@ jobs: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} + - name: Read $OCELOT_VERSION from file + run: cat .env >> $GITHUB_ENV - name: Extract metadata (tags, labels) for Docker id: meta uses: docker/metadata-action@70b2cdc6480c1a8b86edf1777157f8f437de2166 @@ -45,8 +47,8 @@ jobs: type=ref,event=branch type=ref,event=pr type=sha - - name: Read $OCELOT_VERSION from file - run: cat .env >> $GITHUB_ENV + labels: | + ocelot-version=${{ env.OCELOT_VERSION }} - name: Build and push Docker images id: push uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75