From 118e287ff3291362952c29f1bdcfabc3c528c2bb Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Wed, 11 Mar 2026 20:45:51 +0000
Subject: [PATCH] Handle SIGTERM signal

---
 .github/workflows/release.yml |   26 +++++++++++++++++++++++---
 1 files changed, 23 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index f5c1351..d8553ec 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -9,6 +9,29 @@
   contents: read
 
 jobs:
+  deploy-to-ghcr-io:
+    name: Publish to GitHub Container Registry
+    runs-on: ubuntu-latest
+    permissions:
+      contents: read
+      packages: write
+    steps:
+      - name: Checkout code
+        uses: actions/checkout@v6
+
+      - name: Log in to the Container registry
+        uses: docker/login-action@v4
+        with:
+          registry: ghcr.io
+          username: ${{ github.actor }}
+          password: ${{ secrets.GITHUB_TOKEN }}
+
+      - name: Prepare and push Docker plugin
+        run: |
+          export NAME="ghcr.io/${{ github.repository }}"
+          export VERSIONS="latest ${GITHUB_REF/refs\/tags\//}"
+          ./package.sh
+
   deploy-to-docker-hub:
     name: Publish to Docker Hub
     runs-on: ubuntu-latest
@@ -27,6 +50,3 @@
           export NAME="${{ github.actor }}/pyipam"
           export VERSIONS="latest ${GITHUB_REF/refs\/tags\//}"
           ./package.sh
-          for VERSION in ${VERSIONS}; do
-            docker plugin push "${{ github.actor }}/pyipam:${VERSION}"
-          done

--
Gitblit v1.10.0