Merge pull request #5 from official-Cromatin:official-Cromatin/issue4

Official-Cromatin/issue4
This commit was merged in pull request #5.
This commit is contained in:
Cromatin
2025-09-17 14:43:07 +02:00
committed by GitHub
+11 -2
View File
@@ -4,6 +4,10 @@ on:
release: release:
types: [published] types: [published]
permissions:
contents: read
packages: write
jobs: jobs:
build-and-push-docker: build-and-push-docker:
runs-on: self-hosted runs-on: self-hosted
@@ -24,6 +28,11 @@ jobs:
username: ${{ github.actor }} username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }} password: ${{ secrets.GITHUB_TOKEN }}
- name: Transform 'github.repository' to lowercase
id: lowercase_repo
shell: bash
run: echo "repository=${GITHUB_REPOSITORY,,}" >> $GITHUB_OUTPUT
- name: Build and push multi-arch image - name: Build and push multi-arch image
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
with: with:
@@ -31,5 +40,5 @@ jobs:
push: true push: true
platforms: linux/amd64,linux/arm64 platforms: linux/amd64,linux/arm64
tags: | tags: |
ghcr.io/${{ github.repository }}:${{ github.event.release.tag_name }} ghcr.io/${{ steps.lowercase_repo.outputs.repository }}:${{ github.event.release.tag_name }}
ghcr.io/${{ github.repository }}:latest ghcr.io/${{ steps.lowercase_repo.outputs.repository }}:latest