chore: pipeline adjustments
This commit is contained in:
parent
eb96639c17
commit
6b34a9774b
4 changed files with 68 additions and 9 deletions
8
.github/workflows/release.yml
vendored
8
.github/workflows/release.yml
vendored
|
|
@ -54,7 +54,7 @@ jobs:
|
||||||
outputs:
|
outputs:
|
||||||
tag: ${{ steps.create_release.outputs.tag }}
|
tag: ${{ steps.create_release.outputs.tag }}
|
||||||
steps:
|
steps:
|
||||||
- name: "[START] release workflow"
|
- name: "🖅 [START] release workflow"
|
||||||
if: ${{ always() }}
|
if: ${{ always() }}
|
||||||
uses: https://stackit-solutions.git.onstackit.cloud/actions/notify@v${{ env.VER }}
|
uses: https://stackit-solutions.git.onstackit.cloud/actions/notify@v${{ env.VER }}
|
||||||
with:
|
with:
|
||||||
|
|
@ -124,14 +124,14 @@ jobs:
|
||||||
if: steps.create_release.outputs.tag != ''
|
if: steps.create_release.outputs.tag != ''
|
||||||
uses: docker/build-push-action@v7
|
uses: docker/build-push-action@v7
|
||||||
with:
|
with:
|
||||||
push: false
|
push: true
|
||||||
tags: actions/notify-slim:${{ steps.create_release.outputs.tag }}
|
tags: actions/notify-slim:${{ steps.create_release.outputs.tag }}
|
||||||
|
|
||||||
- name: "[END] release workflow"
|
- name: "🖅 [END] release workflow"
|
||||||
if: ${{ always() }}
|
if: ${{ always() }}
|
||||||
uses: https://stackit-solutions.git.onstackit.cloud/actions/notify@v${{ env.VER }}
|
uses: https://stackit-solutions.git.onstackit.cloud/actions/notify@v${{ env.VER }}
|
||||||
with:
|
with:
|
||||||
title: "[START] release workflow (${{ forgejo.run_number }})"
|
title: "[END] release workflow (${{ forgejo.run_number }})"
|
||||||
author: ${{ forgejo.actor }}
|
author: ${{ forgejo.actor }}
|
||||||
giturl: ${{ forgejo.server_url }}
|
giturl: ${{ forgejo.server_url }}
|
||||||
iconslug: instacart
|
iconslug: instacart
|
||||||
|
|
|
||||||
|
|
@ -70,9 +70,7 @@ linters:
|
||||||
- name: empty-lines
|
- name: empty-lines
|
||||||
- name: early-return
|
- name: early-return
|
||||||
exclusions:
|
exclusions:
|
||||||
paths:
|
paths: []
|
||||||
- generator/
|
|
||||||
- internal/testutils
|
|
||||||
generated: lax
|
generated: lax
|
||||||
warn-unused: true
|
warn-unused: true
|
||||||
# Excluding configuration per-path, per-linter, per-text and per-source.
|
# Excluding configuration per-path, per-linter, per-text and per-source.
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,69 @@
|
||||||
"tagFormat": "v${version}",
|
"tagFormat": "v${version}",
|
||||||
"plugins": [
|
"plugins": [
|
||||||
"@semantic-release/commit-analyzer",
|
"@semantic-release/commit-analyzer",
|
||||||
|
[
|
||||||
|
"semantic-release-replace-plugin",
|
||||||
|
{
|
||||||
|
"replacements": [
|
||||||
|
{
|
||||||
|
"files": ["action.yml"],
|
||||||
|
"from": " image: 'docker://stackit-solutions.git.onstackit.cloud/actions/notify-slim:v.*'",
|
||||||
|
"to": " image: 'docker://stackit-solutions.git.onstackit.cloud/actions/notify-slim:v${nextRelease.version}'",
|
||||||
|
"results": [
|
||||||
|
{
|
||||||
|
"file": "action.yml",
|
||||||
|
"hasChanged": true,
|
||||||
|
"numMatches": 1,
|
||||||
|
"numReplacements": 1
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"countMatches": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"files": ["README.md"],
|
||||||
|
"from": " uses: https://stackit-solutions.git.onstackit.cloud/actions/notify@v.*",
|
||||||
|
"to": " uses: https://stackit-solutions.git.onstackit.cloud/actions/notify@v${nextRelease.version}",
|
||||||
|
"results": [
|
||||||
|
{
|
||||||
|
"file": "README.md",
|
||||||
|
"hasChanged": true,
|
||||||
|
"numMatches": 1,
|
||||||
|
"numReplacements": 1
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"countMatches": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"files": [".github/workflows/example.yml"],
|
||||||
|
"from": " VER: .*",
|
||||||
|
"to": " VER: ${nextRelease.version}",
|
||||||
|
"results": [
|
||||||
|
{
|
||||||
|
"file": ".github/workflows/example.yml",
|
||||||
|
"hasChanged": true,
|
||||||
|
"numMatches": 1,
|
||||||
|
"numReplacements": 1
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"countMatches": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"files": [".github/workflows/release.yml"],
|
||||||
|
"from": " VER: .*",
|
||||||
|
"to": " VER: ${nextRelease.version}",
|
||||||
|
"results": [
|
||||||
|
{
|
||||||
|
"file": ".github/workflows/release.yml",
|
||||||
|
"hasChanged": true,
|
||||||
|
"numMatches": 1,
|
||||||
|
"numReplacements": 1
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"countMatches": true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"@semantic-release/release-notes-generator",
|
"@semantic-release/release-notes-generator",
|
||||||
"@semantic-release/changelog",
|
"@semantic-release/changelog",
|
||||||
"@semantic-release/git"
|
"@semantic-release/git"
|
||||||
|
|
|
||||||
|
|
@ -27,8 +27,6 @@ func Test_card(t *testing.T) {
|
||||||
Author: "gotest",
|
Author: "gotest",
|
||||||
IconUrl: "https://github.githubassets.com/images/modules/logos_page/Octocat.png",
|
IconUrl: "https://github.githubassets.com/images/modules/logos_page/Octocat.png",
|
||||||
Project: "proj",
|
Project: "proj",
|
||||||
Commit: "12345",
|
|
||||||
Branch: "main",
|
|
||||||
Status: "success",
|
Status: "success",
|
||||||
ActionID: "123",
|
ActionID: "123",
|
||||||
GitURL: "https://test.url",
|
GitURL: "https://test.url",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue