From 2f3ec4def0beefe885f68d2520811d4f02d08182 Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Wed, 11 Mar 2026 20:05:11 +0000
Subject: [PATCH] Workflows: update release workflow

---
 .github/workflows/release.yml |   20 +++++++++++---------
 1 files changed, 11 insertions(+), 9 deletions(-)

diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 61f996f..8fab546 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -5,23 +5,25 @@
     tags:
       - 'v[0-9]+.*'
 
+permissions:
+  contents: read
+
 jobs:
-  deploy:
+  deploy-to-docker-hub:
     name: Publish to Docker Hub
     runs-on: ubuntu-latest
     steps:
       - name: Checkout code
-        uses: actions/checkout@v2
+        uses: actions/checkout@v6
 
       - name: Login to Docker Hub
-        run: |
-          docker login -u 'jacekkow' -p '${{ secrets.DOCKER_PASSWORD }}'
+        uses: docker/login-action@v4
+        with:
+          username: ${{ github.actor }}
+          password: ${{ secrets.DOCKER_PASSWORD }}
 
       - name: Prepare and push Docker plugin
         run: |
-          VERSIONS="latest ${GITHUB_REF/refs\/tags\//}"
-          export VERSIONS
+          export NAME="${{ github.actor }}/pyveth"
+          export VERSIONS="latest ${GITHUB_REF/refs\/tags\//}"
           ./package.sh
-          for VERSION in ${VERSIONS}; do
-            docker plugin push "jacekkow/pyveth:${VERSION}"
-          done

--
Gitblit v1.10.0