From 3caddfc982600d9e44cc9540b2736385c53bd598 Mon Sep 17 00:00:00 2001 From: Javier Bullrich Date: Fri, 29 Sep 2023 16:21:34 +0200 Subject: [PATCH] added label to docker image --- .github/workflows/release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a9b82b6..12483e3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -80,7 +80,9 @@ jobs: steps: - uses: actions/checkout@v3 - name: Build image - run: docker build . --file Dockerfile --tag $IMAGE_NAME + run: docker build . --file Dockerfile --label "version=$TAG" --tag $IMAGE_NAME + env: + TAG: v${{ needs.test-versions.outputs.version }} - name: Log into registry run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin - name: Push image