From 9527c46b9528875cf705bd753844321809195277 Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Wed, 11 Mar 2026 19:24:05 +0000
Subject: [PATCH] Workflows: update test workflow
---
.github/workflows/release.yml | 45 ++++++++++++++++++++++++++++++++++++++-------
1 files changed, 38 insertions(+), 7 deletions(-)
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 3f55f54..ca6df05 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -5,23 +5,54 @@
tags:
- 'v[0-9]+.*'
+permissions:
+ contents: read
+
jobs:
- deploy:
+ 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
+ for VERSION in ${VERSIONS}; do
+ docker plugin push "ghcr.io/${{ github.repository }}:${VERSION}"
+ done
+
+ 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 }}/pyipam"
+ export VERSIONS="latest ${GITHUB_REF/refs\/tags\//}"
./package.sh
for VERSION in ${VERSIONS}; do
- docker plugin push "jacekkow/pyipam:${VERSION}"
+ docker plugin push "${{ github.actor }}/pyipam:${VERSION}"
done
--
Gitblit v1.10.0