From d2fc0d57014a4f9d54afb2ebfbd23829c121a136 Mon Sep 17 00:00:00 2001 From: Marco Duca Date: Tue, 27 Jan 2026 18:50:34 +0100 Subject: [PATCH] Update Docker workflow --- .github/workflows/docker-image.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 77e1834..9424f93 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -7,6 +7,8 @@ on: jobs: push_to_registry: name: Push Docker image to Docker Hub + permissions: + contents: read runs-on: ubuntu-latest steps: - name: Check out the repo @@ -17,16 +19,23 @@ jobs: with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_PASSWORD }} - + - name: Extract metadata (tags, labels) for Docker id: meta uses: docker/metadata-action@v5 with: - images: loideunical/loide:ese + images: loideunical/loide-ese + tags: | + type=semver,pattern={{version}} + type=raw,value=latest + - name: Build and push uses: docker/build-push-action@v5 with: context: . platforms: linux/amd64 push: true - tags: loideunical/loide:ese + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} + build-args: | + APP_VERSION=${{ github.ref_name }}