Updating workflow
Some checks failed
Production deployment / Building and pushing (push) Failing after 2m49s
Some checks failed
Production deployment / Building and pushing (push) Failing after 2m49s
This commit is contained in:
@@ -3,8 +3,8 @@ name: Production deployment
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
tags:
|
||||||
- master
|
- 'v*'
|
||||||
|
|
||||||
env:
|
env:
|
||||||
IMAGE_NAME: "jdrbot"
|
IMAGE_NAME: "jdrbot"
|
||||||
@@ -17,7 +17,14 @@ jobs:
|
|||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repo's default branch
|
- name: Check out repo's default branch
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
- name: Getting version
|
||||||
|
uses: https://gitea.skydust.fr/actions/get-version@main
|
||||||
|
- name: Update rust package version
|
||||||
|
run: |
|
||||||
|
log_info "Updating gradle.properties version to $(yellow)$NEW_VERSION"
|
||||||
|
sed -Ei "s|^(version=).*$|\1${NEW_VERSION}|" gradle.properties
|
||||||
|
cat gradle.properties
|
||||||
- name: Docker login
|
- name: Docker login
|
||||||
uses: https://gitea.skydust.fr/actions/docker-login-skydust@main
|
uses: https://gitea.skydust.fr/actions/docker-login-skydust@main
|
||||||
with:
|
with:
|
||||||
|
|||||||
23
.gitea/workflows/release.yml
Normal file
23
.gitea/workflows/release.yml
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
name: Release
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
semver:
|
||||||
|
type: choice
|
||||||
|
description: Choose the semver
|
||||||
|
options:
|
||||||
|
- "Major - Incompatible API changes"
|
||||||
|
- "Minor - Adding functionality in a backward compatible manner"
|
||||||
|
- "Patch - Backward compatible bug fixes"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release:
|
||||||
|
name: Release
|
||||||
|
runs-on: skydust-runner
|
||||||
|
steps:
|
||||||
|
- name: Release
|
||||||
|
uses: https://gitea.skydust.fr/actions/create-release@main
|
||||||
|
with:
|
||||||
|
semver: ${{ inputs.semver }}
|
||||||
|
token: ${{ secrets.CI_GIT_WRITE_TOKEN }}
|
||||||
Reference in New Issue
Block a user