File tree Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -100,22 +100,22 @@ jobs:
100
100
- name : Determine deployment environment
101
101
id : set-environment
102
102
run : |
103
- if [[ "${{ github.ref }}" == " refs/heads/develop" ]]; then
103
+ if [[ "${{ github.ref }}" =~ refs/tags/v[0-9]+\.[0-9]+\.[0-9]+-rc\.[0-9]+ ]]; then
104
104
echo "environment=Staging" >> $GITHUB_OUTPUT
105
- echo "🎯 Deployment target: Staging (develop branch )"
106
- elif [[ "${{ github.ref }}" == " refs/heads/main" ]]; then
105
+ echo "🎯 Deployment target: Staging (pre-release tag: ${{ github.ref }} )"
106
+ elif [[ "${{ github.ref }}" =~ refs/tags/v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
107
107
echo "environment=Production" >> $GITHUB_OUTPUT
108
- echo "🎯 Deployment target: Production (main branch )"
108
+ echo "🎯 Deployment target: Production (release tag: ${{ github.ref }} )"
109
109
else
110
110
echo "environment=none" >> $GITHUB_OUTPUT
111
- echo "🚫 No deployment target (branch/ tag not configured for deployment)"
111
+ echo "🚫 No deployment target (tag not configured for deployment: ${{ github.ref }} )"
112
112
exit 0
113
113
fi
114
114
115
- # Automatic deployment based on branch
115
+ # Automatic deployment based on tags
116
116
deploy-app :
117
117
needs : [all-ci-passed]
118
- if : ${{ github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/main' }}
118
+ if : ${{ startsWith( github.ref, 'refs/tags/v') }}
119
119
uses : ls1intum/.github/.github/workflows/deploy-docker-compose.yml@main
120
120
with :
121
121
environment : ${{ needs.all-ci-passed.outputs.environment }}
Original file line number Diff line number Diff line change @@ -3,15 +3,13 @@ name: Release
3
3
on :
4
4
push :
5
5
branches : [develop, main]
6
- tags-ignore :
7
- - ' **'
8
6
9
7
jobs :
10
8
release :
9
+ if : ${{ !startsWith(github.ref, 'refs/tags/v') }}
11
10
runs-on : ubuntu-latest
12
11
permissions :
13
12
contents : write
14
-
15
13
steps :
16
14
- uses : actions/checkout@v4
17
15
with :
28
26
conventional-changelog-conventionalcommits
29
27
env :
30
28
GITHUB_TOKEN : ${{ secrets.GH_PAT }}
29
+ GIT_AUTHOR_NAME : " Felix T.J. Dietrich"
30
+ GIT_AUTHOR_EMAIL :
" [email protected] "
31
+ GIT_COMMITTER_NAME : " Felix T.J. Dietrich"
32
+ GIT_COMMITTER_EMAIL :
" [email protected] "
You can’t perform that action at this time.
0 commit comments