mirror of
https://github.com/Crosstalk-Solutions/project-nomad.git
synced 2026-03-28 03:29:25 +01:00
ops: support RC versions
This commit is contained in:
parent
6874a2824f
commit
41eb30d84d
7
.github/workflows/docker.yml
vendored
7
.github/workflows/docker.yml
vendored
|
|
@ -7,6 +7,11 @@ on:
|
||||||
description: 'Semantic version to label the Docker image under'
|
description: 'Semantic version to label the Docker image under'
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
tag_latest:
|
||||||
|
description: 'Also tag this image as :latest? (Keep false for RC and beta releases)'
|
||||||
|
required: false
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check_authorization:
|
check_authorization:
|
||||||
|
|
@ -41,4 +46,4 @@ jobs:
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
ghcr.io/crosstalk-solutions/project-nomad:${{ inputs.version }}
|
ghcr.io/crosstalk-solutions/project-nomad:${{ inputs.version }}
|
||||||
ghcr.io/crosstalk-solutions/project-nomad:latest
|
${{ inputs.tag_latest && 'ghcr.io/crosstalk-solutions/project-nomad:latest' || '' }}
|
||||||
|
|
|
||||||
15
.github/workflows/release.yml
vendored
15
.github/workflows/release.yml
vendored
|
|
@ -37,7 +37,10 @@ jobs:
|
||||||
GIT_COMMITTER_EMAIL: dev@cosmistack.com
|
GIT_COMMITTER_EMAIL: dev@cosmistack.com
|
||||||
|
|
||||||
- name: Finalize release notes
|
- name: Finalize release notes
|
||||||
if: steps.semver.outputs.new_release_published == 'true'
|
# Skip for pre-releases (versions containing a hyphen, e.g. 1.27.0-rc.1)
|
||||||
|
if: |
|
||||||
|
steps.semver.outputs.new_release_published == 'true' &&
|
||||||
|
!contains(steps.semver.outputs.new_release_version, '-')
|
||||||
id: finalize-notes
|
id: finalize-notes
|
||||||
env:
|
env:
|
||||||
GITHUB_REPOSITORY: ${{ github.repository }}
|
GITHUB_REPOSITORY: ${{ github.repository }}
|
||||||
|
|
@ -55,7 +58,10 @@ jobs:
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Commit finalized release notes
|
- name: Commit finalized release notes
|
||||||
if: steps.semver.outputs.new_release_published == 'true' && steps.finalize-notes.outputs.has_notes == 'true'
|
if: |
|
||||||
|
steps.semver.outputs.new_release_published == 'true' &&
|
||||||
|
steps.finalize-notes.outputs.has_notes == 'true' &&
|
||||||
|
!contains(steps.semver.outputs.new_release_version, '-')
|
||||||
run: |
|
run: |
|
||||||
git config user.name "cosmistack-bot"
|
git config user.name "cosmistack-bot"
|
||||||
git config user.email "dev@cosmistack.com"
|
git config user.email "dev@cosmistack.com"
|
||||||
|
|
@ -65,7 +71,10 @@ jobs:
|
||||||
git push origin main
|
git push origin main
|
||||||
|
|
||||||
- name: Update GitHub release body
|
- name: Update GitHub release body
|
||||||
if: steps.semver.outputs.new_release_published == 'true' && steps.finalize-notes.outputs.has_notes == 'true'
|
if: |
|
||||||
|
steps.semver.outputs.new_release_published == 'true' &&
|
||||||
|
steps.finalize-notes.outputs.has_notes == 'true' &&
|
||||||
|
!contains(steps.semver.outputs.new_release_version, '-')
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.COSMISTACKBOT_ACCESS_TOKEN }}
|
GH_TOKEN: ${{ secrets.COSMISTACKBOT_ACCESS_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,8 @@
|
||||||
{
|
{
|
||||||
"branches": ["main"],
|
"branches": [
|
||||||
|
"main",
|
||||||
|
{ "name": "rc", "prerelease": "rc" }
|
||||||
|
],
|
||||||
"plugins": [
|
"plugins": [
|
||||||
"@semantic-release/commit-analyzer",
|
"@semantic-release/commit-analyzer",
|
||||||
"@semantic-release/release-notes-generator",
|
"@semantic-release/release-notes-generator",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user