Compare commits
1 Commits
main
...
20b45bfb9e
| Author | SHA1 | Date | |
|---|---|---|---|
| 20b45bfb9e |
@@ -46,7 +46,7 @@ jobs:
|
|||||||
username: ${{ secrets.registry-user }}
|
username: ${{ secrets.registry-user }}
|
||||||
password: ${{ secrets.registry-password }}
|
password: ${{ secrets.registry-password }}
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
|
|||||||
@@ -20,9 +20,9 @@ jobs:
|
|||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Semver release
|
- name: Semver release
|
||||||
uses: cocogitto/cocogitto-action@v4
|
uses: cocogitto/cocogitto-action@v3
|
||||||
with:
|
with:
|
||||||
command: check
|
# check-latest-tag-only: ${{ inputs.check-latest-tag-only }}
|
||||||
args: --from-latest-tag
|
check-latest-tag-only: true
|
||||||
git-user: "gitea-bot"
|
git-user: "gitea-bot"
|
||||||
git-user-email: "bot@git.palkoi.net"
|
git-user-email: "bot@git.palkoi.net"
|
||||||
|
|||||||
@@ -1,12 +1,15 @@
|
|||||||
---
|
---
|
||||||
name: Cog release
|
name: Cog release
|
||||||
on:
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
# inputs:
|
||||||
ref:
|
# check-latest-tag-only:
|
||||||
type: string
|
# type: boolean
|
||||||
required: false
|
# required: false
|
||||||
default: ""
|
# default: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
@@ -17,7 +20,6 @@ jobs:
|
|||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
ref: ${{ inputs.ref == '' && github.sha || inputs.ref }}
|
|
||||||
|
|
||||||
- run: |
|
- run: |
|
||||||
git config user.name gitea-bot
|
git config user.name gitea-bot
|
||||||
@@ -26,23 +28,20 @@ jobs:
|
|||||||
git config --global user.name gitea-bot
|
git config --global user.name gitea-bot
|
||||||
|
|
||||||
- name: Semver release
|
- name: Semver release
|
||||||
uses: cocogitto/cocogitto-action@v4
|
uses: cocogitto/cocogitto-action@v3
|
||||||
id: release
|
id: release
|
||||||
with:
|
with:
|
||||||
command: bump
|
release: true
|
||||||
args: --auto
|
|
||||||
git-user: "gitea-bot"
|
git-user: "gitea-bot"
|
||||||
git-user-email: "bot@git.palkoi.net"
|
git-user-email: "bot@git.palkoi.net"
|
||||||
|
check-latest-tag-only: true
|
||||||
|
# check-latest-tag-only: ${{ inputs.check-latest-tag-only }}
|
||||||
|
|
||||||
- name: Generate Changelog
|
- name: Generate Changelog
|
||||||
id: changelog
|
run: cog changelog --at ${{ steps.release.outputs.version }} -t full_hash > GITHUB_CHANGELOG.md
|
||||||
uses: cocogitto/cocogitto-action@v4
|
|
||||||
with:
|
|
||||||
command: changelog
|
|
||||||
args: --at ${{ steps.release.outputs.version }} -t full_hash
|
|
||||||
|
|
||||||
- name: Upload github release
|
- name: Upload github release
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
body: ${{ steps.changelog.outputs.stdout }}
|
body_path: GITHUB_CHANGELOG.md
|
||||||
tag_name: ${{ steps.release.outputs.version }}
|
tag_name: ${{ steps.release.outputs.version }}
|
||||||
|
|||||||
@@ -1,12 +0,0 @@
|
|||||||
---
|
|
||||||
name: Cog release
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
release:
|
|
||||||
name: Create release
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
uses: ./.gitea/workflows/cog-release.yml
|
|
||||||
@@ -53,7 +53,7 @@ jobs:
|
|||||||
id: ml
|
id: ml
|
||||||
# You can override MegaLinter flavor used to have faster performances
|
# You can override MegaLinter flavor used to have faster performances
|
||||||
# More info at https://megalinter.io/flavors/
|
# More info at https://megalinter.io/flavors/
|
||||||
uses: oxsecurity/megalinter@v9
|
uses: oxsecurity/megalinter@v7
|
||||||
env:
|
env:
|
||||||
# All available variables are described in documentation
|
# All available variables are described in documentation
|
||||||
# https://megalinter.io/configuration/
|
# https://megalinter.io/configuration/
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ jobs:
|
|||||||
terraform-docs --version
|
terraform-docs --version
|
||||||
terraform-docs markdown table --output-file README.md --output-mode inject .
|
terraform-docs markdown table --output-file README.md --output-mode inject .
|
||||||
- name: Verify Changed files
|
- name: Verify Changed files
|
||||||
uses: tj-actions/verify-changed-files@v20
|
uses: tj-actions/verify-changed-files@v19
|
||||||
id: verify-changed-files
|
id: verify-changed-files
|
||||||
with:
|
with:
|
||||||
files: |
|
files: |
|
||||||
|
|||||||
Reference in New Issue
Block a user