Minor fix
Some checks failed
Docker image CI / Build and publish Docker image to Docker Hub and GitHub Containers Repository (push) Has been cancelled
Some checks failed
Docker image CI / Build and publish Docker image to Docker Hub and GitHub Containers Repository (push) Has been cancelled
This commit is contained in:
parent
2b8c97fe1d
commit
130ab243da
1 changed files with 10 additions and 2 deletions
|
|
@ -19,15 +19,23 @@ jobs:
|
|||
with:
|
||||
generate_release_notes: true
|
||||
|
||||
- name: Calculate final Docker image name
|
||||
id: docker_image_name
|
||||
run: |
|
||||
IMAGE_NAME="${{ github.repository }}"
|
||||
FINAL_NAME="${IMAGE_NAME/_Docker/}"
|
||||
echo "value=$FINAL_NAME" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Docker meta
|
||||
id: meta
|
||||
uses: docker/metadata-action@v5
|
||||
with:
|
||||
images: |
|
||||
${{ github.repository | replace('_Docker', '') }}
|
||||
ghcr.io/${{ github.repository | replace('_Docker', '') }}
|
||||
${{ steps.docker_image_name.outputs.value }} # docker.io/tigerblue77/dell_idrac_fan_controller
|
||||
ghcr.io/${{ steps.docker_image_name.outputs.value }} # ghcr.io/tigerblue77/dell_idrac_fan_controller
|
||||
tags: |
|
||||
type=ref,event=tag
|
||||
type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/v') }}
|
||||
flavor: |
|
||||
latest=auto
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue