Skip to content

Commit

Permalink
Merge branch 'feat/add-github-release-workflow' into 'main'
Browse files Browse the repository at this point in the history
feat: add github release workflow

See merge request oss/imalive!8
  • Loading branch information
idrissneumann committed Feb 23, 2024
2 parents 298c3b7 + ec4980e commit 39b3dba
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 3 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Create release

on:
push:
branches:
- main

permissions:
contents: write

jobs:
release:
name: Release on push to main
runs-on: ubuntu-22.04

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Check and create release
uses: comworkio/gh-versioning@1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5 changes: 3 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ mirror:
api_x86:
stage: deliver
script:
- setsid ./ci/docker-deliver.sh "x86" "imalive-api" "3.5"
- setsid ./ci/docker-deliver.sh "x86" "imalive-api"
- setsid ./ci/docker-deliver.sh "x86" "imalive-api"
only:
refs:
- /^(main.*)$/
Expand All @@ -32,7 +33,7 @@ api_x86:
api_arm:
stage: deliver
script:
- setsid ./ci/docker-deliver.sh "arm" "imalive-api" "3.5"
- setsid ./ci/docker-deliver.sh "arm" "imalive-api"
only:
refs:
- /^(main.*)$/
Expand Down
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.2.0
2 changes: 1 addition & 1 deletion ci/docker-deliver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ BASE_DIR="$(dirname $0)"
REPO_PATH="${BASE_DIR}/.."
ARCH="${1}"
IMAGE="${2}"
VERSION="${3}"
VERSION="$(cat VERSION)"

[[ $ARCH ]] || ARCH="x86"

Expand Down

0 comments on commit 39b3dba

Please sign in to comment.