chore: updated workflow for release tagging
This commit is contained in:
parent
0230b4833b
commit
b1cc6f4097
1 changed files with 53 additions and 47 deletions
|
|
@ -2,9 +2,9 @@ name: Docker image CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ master ]
|
tags: ["v*.*.*"]
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- '**/README.md'
|
- "**/README.md"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
@ -14,13 +14,18 @@ jobs:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Generate release note
|
||||||
|
uses: softprops/action-gh-release@v1
|
||||||
|
with:
|
||||||
|
generate_release_notes: true
|
||||||
|
|
||||||
- name: Remove "_Docker" suffix from GitHub repository name to use it as image name
|
- name: Remove "_Docker" suffix from GitHub repository name to use it as image name
|
||||||
uses: mad9000/actions-find-and-replace-string@3
|
uses: mad9000/actions-find-and-replace-string@3
|
||||||
id: docker_image_name
|
id: docker_image_name
|
||||||
with:
|
with:
|
||||||
source: ${{ github.repository }}
|
source: ${{ github.repository }}
|
||||||
find: '_Docker'
|
find: "_Docker"
|
||||||
replace: ''
|
replace: ""
|
||||||
|
|
||||||
- name: Docker meta
|
- name: Docker meta
|
||||||
id: meta
|
id: meta
|
||||||
|
|
@ -29,7 +34,8 @@ jobs:
|
||||||
images: |
|
images: |
|
||||||
${{ steps.docker_image_name.outputs.value }}
|
${{ steps.docker_image_name.outputs.value }}
|
||||||
ghcr.io/${{ steps.docker_image_name.outputs.value }}
|
ghcr.io/${{ steps.docker_image_name.outputs.value }}
|
||||||
tags: type=raw,value=latest
|
flavor: |
|
||||||
|
latest=auto
|
||||||
|
|
||||||
- name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue