From a4d4f806e8d9a9f019c18c667afa1e703b4bf97e Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Wed, 11 Mar 2026 19:41:34 +0000
Subject: [PATCH] Workflows: release: "docker plugin" does not allow duplicates anymore
---
.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