correction config release
This commit is contained in:
@@ -1,9 +1,7 @@
|
|||||||
name: Release
|
name: Release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
release:
|
release:
|
||||||
types: [published]
|
types: [published]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
docker:
|
docker:
|
||||||
name: Build & push Docker image
|
name: Build & push Docker image
|
||||||
@@ -12,18 +10,10 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: https://github.com/actions/checkout@v4
|
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
|
- name: Login to Gitea container registry
|
||||||
uses: https://github.com/docker/login-action@v3
|
uses: https://github.com/docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ${{ steps.registry.outputs.host }}
|
registry: git.goutailler-olivier.com
|
||||||
username: ${{ gitea.actor }}
|
username: ${{ gitea.actor }}
|
||||||
password: ${{ secrets.RELEASE_TOKEN }}
|
password: ${{ secrets.RELEASE_TOKEN }}
|
||||||
|
|
||||||
@@ -33,5 +23,5 @@ jobs:
|
|||||||
context: .
|
context: .
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
${{ steps.registry.outputs.image }}:${{ gitea.ref_name }}
|
git.goutailler-olivier.com/${{ gitea.repository }}:${{ gitea.ref_name }}
|
||||||
${{ steps.registry.outputs.image }}:latest
|
git.goutailler-olivier.com/${{ gitea.repository }}:latest
|
||||||
|
|||||||
Reference in New Issue
Block a user