Skip to content

Commit

Permalink
ci: fixes on release.yml and test-build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
PengyuanZhao committed Feb 23, 2024
1 parent 9bb4d66 commit b94850b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
- 'v*'

jobs:
release:
Expand Down Expand Up @@ -66,6 +66,9 @@ jobs:
scripts/release.sh publish
- name: Build/Push Docker Image
env:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_PASS: ${{ secrets.DOCKERHUB_PASSWORD }}
run: |
scripts/release_containers.sh
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: main
fetch-depth: 0

- name: Trigger release
env:
Expand Down
2 changes: 2 additions & 0 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ push_release() {
log "commiting and pushing the release to github"
_version_no_tag=$(echo $VERSION | awk -F. '{printf("%d.%d.%d", $1, $2, $3)}')
if [ "$CI" != "" ]; then
log "configuring git user email, user name and signingkey"
git config --global user.email $git_email
git config --global user.name $git_user
git config --global user.signingkey $GPG_SIGNING_KEY
Expand Down Expand Up @@ -387,6 +388,7 @@ bump_version() {

log "commiting and pushing the vertion bump to github"
if [ "$CI" != "" ]; then
log "configuring git user email, user name and signingkey"
git config --global user.email $git_email
git config --global user.name $git_user
git config --global user.signingkey $GPG_SIGNING_KEY
Expand Down

0 comments on commit b94850b

Please sign in to comment.