fix: workflow

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

---------

Co-authored-by: charlesgauthereau <charles.gauthereau@soluce-technologies.com>
This commit is contained in:
Charles GTE
2026-03-06 18:30:11 +01:00
committed by GitHub
co-authored by charlesgauthereau
parent 45166a3b9c
commit cd2da4441d
2 changed files with 21 additions and 4 deletions
+4 -1
View File
@@ -3,6 +3,9 @@ name: Docker Publish
on:
workflow_call:
inputs:
version:
required: true
type: string
image_name:
required: false
type: string
@@ -50,7 +53,7 @@ jobs:
id: prep
run: |
ARCH=${{ matrix.platform == 'linux/amd64' && 'amd64' || 'arm64' }}
echo "image=${{ inputs.image_name }}:${GITHUB_REF#refs/tags/}-$ARCH" >> $GITHUB_OUTPUT
echo "image=${{ inputs.image_name }}:${{inputs.version}}-$ARCH" >> $GITHUB_OUTPUT
echo "safe_platform=${{ matrix.platform == 'linux/amd64' && 'linux-amd64' || 'linux-arm64' }}" >> $GITHUB_OUTPUT
- name: Build and push image
+17 -3
View File
@@ -1,10 +1,17 @@
name: Auto Release & Publish
#on:
# pull_request:
# types: [ closed ]
# branches:
# - main
on:
pull_request:
types: [ closed ]
push:
branches:
- main
tags:
- '*.*.*'
- '!*-*'
permissions:
contents: write
@@ -16,6 +23,7 @@ jobs:
runs-on: ubuntu-latest
outputs:
draft_tag: ${{ steps.release_step.outputs.draft_tag }}
version: ${{ steps.release_step.outputs.version }}
steps:
- uses: actions/create-github-app-token@v1
id: app-token
@@ -45,7 +53,12 @@ jobs:
id: release_step
run: |
git pull origin main
OUTPUT=$(pnpm exec release-it --ci)
VERSION=$(pnpm exec release-it --ci --release-version)
echo "version=$VERSION"
echo "version=$VERSION" >> $GITHUB_OUTPUT
OUTPUT=$(pnpm exec release-it --ci --release-version)
echo "$OUTPUT"
DRAFT_TAG=$(echo "$OUTPUT" | grep -o 'releases/tag/[^ ]*' | sed 's|releases/tag/||')
echo "draft_tag=$DRAFT_TAG" >> $GITHUB_OUTPUT
@@ -56,6 +69,7 @@ jobs:
needs: create-release
uses: ./.github/workflows/docker.yml
with:
version: ${{ steps.publish_release_step.outputs.version }}
add_latest: true
secrets:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME_2 }}