Minor improvements & simplifications
This commit is contained in:
parent
b1cc6f4097
commit
aa733164b1
1 changed files with 5 additions and 11 deletions
|
|
@ -2,7 +2,7 @@ name: Docker image CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags: ["v*.*.*"]
|
tags: ["v[0-9]+.[0-9]+"]
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- "**/README.md"
|
- "**/README.md"
|
||||||
|
|
||||||
|
|
@ -19,21 +19,15 @@ jobs:
|
||||||
with:
|
with:
|
||||||
generate_release_notes: true
|
generate_release_notes: true
|
||||||
|
|
||||||
- name: Remove "_Docker" suffix from GitHub repository name to use it as image name
|
|
||||||
uses: mad9000/actions-find-and-replace-string@3
|
|
||||||
id: docker_image_name
|
|
||||||
with:
|
|
||||||
source: ${{ github.repository }}
|
|
||||||
find: "_Docker"
|
|
||||||
replace: ""
|
|
||||||
|
|
||||||
- name: Docker meta
|
- name: Docker meta
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v5
|
uses: docker/metadata-action@v5
|
||||||
with:
|
with:
|
||||||
images: |
|
images: |
|
||||||
${{ steps.docker_image_name.outputs.value }}
|
${{ github.repository | replace('_Docker', '') }}
|
||||||
ghcr.io/${{ steps.docker_image_name.outputs.value }}
|
ghcr.io/${{ github.repository | replace('_Docker', '') }}
|
||||||
|
tags: |
|
||||||
|
type=ref,event=tag
|
||||||
flavor: |
|
flavor: |
|
||||||
latest=auto
|
latest=auto
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue