correction config release
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
name: Release
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
docker:
|
||||
name: Build & push Docker image
|
||||
@@ -12,18 +10,10 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: https://github.com/actions/checkout@v4
|
||||
|
||||
- name: Extract registry host from server URL
|
||||
id: registry
|
||||
run: |
|
||||
HOST=$(echo '${{ gitea.server_url }}' | sed 's|https://||' | sed 's|http://||')
|
||||
echo "host=${HOST}" >> $GITHUB_OUTPUT
|
||||
echo "image=${HOST}/${{ gitea.repository }}" >> $GITHUB_OUTPUT
|
||||
echo "DEBUG host=${HOST}"
|
||||
echo "DEBUG server_url=${{ gitea.server_url }}"
|
||||
- name: Login to Gitea container registry
|
||||
uses: https://github.com/docker/login-action@v3
|
||||
with:
|
||||
registry: ${{ steps.registry.outputs.host }}
|
||||
registry: git.goutailler-olivier.com
|
||||
username: ${{ gitea.actor }}
|
||||
password: ${{ secrets.RELEASE_TOKEN }}
|
||||
|
||||
@@ -33,5 +23,5 @@ jobs:
|
||||
context: .
|
||||
push: true
|
||||
tags: |
|
||||
${{ steps.registry.outputs.image }}:${{ gitea.ref_name }}
|
||||
${{ steps.registry.outputs.image }}:latest
|
||||
git.goutailler-olivier.com/${{ gitea.repository }}:${{ gitea.ref_name }}
|
||||
git.goutailler-olivier.com/${{ gitea.repository }}:latest
|
||||
|
||||
Reference in New Issue
Block a user