This repository was archived by the owner on Aug 8, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +19
-8
lines changed Expand file tree Collapse file tree 4 files changed +19
-8
lines changed Original file line number Diff line number Diff line change 6
6
- master
7
7
schedule :
8
8
- cron : " 0 1 * * *"
9
+ release :
10
+ types : [ published ]
9
11
10
12
jobs :
11
13
@@ -66,15 +68,15 @@ jobs:
66
68
AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
67
69
AWS_DEFAULT_REGION : ${{ secrets.AWS_DEFAULT_REGION }}
68
70
AWS_REGISTRY_URL : ${{ secrets.AWS_REGISTRY_URL }}
69
- run : ./pipelines/docker-build-push-aws.sh latest
71
+ run : ./pipelines/docker-build-push-aws.sh latest ${GITHUB_SHA}
70
72
71
73
- name : Deploy CloudFormation
72
74
working-directory : /tmp/com.linked-planet.ktor-example
73
75
env :
74
76
AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
75
77
AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
76
78
AWS_DEFAULT_REGION : ${{ secrets.AWS_DEFAULT_REGION }}
77
- run : ./pipelines/deploy.sh test latest && ./pipelines/deploy-wait.sh test latest
79
+ run : ./pipelines/deploy.sh test ${GITHUB_SHA} && ./pipelines/deploy-wait.sh test ${GITHUB_SHA}
78
80
79
81
- name : Run Integration Tests
80
82
working-directory : /tmp/com.linked-planet.ktor-example
Original file line number Diff line number Diff line change 34
34
- name : Gradle Build
35
35
run : ./gradlew build
36
36
37
+ - name : Extract Version
38
+ id : extract-version
39
+ run : |
40
+ VERSION="$(./gradlew cV | grep "Project version" | cut -d ":" -f2 | xargs)"
41
+ echo "Detected version: $VERSION"
42
+ echo "VERSION=$VERSION" >> $GITHUB_ENV
43
+
37
44
- name : Set up QEMU
38
45
uses : docker/setup-qemu-action@v2
39
46
50
57
uses : docker/build-push-action@v3
51
58
with :
52
59
context : .
53
- push : true
54
- tags : linkedplanet/ktorbase:latest
60
+ load : true
61
+ push : ${{ github.event_name == 'release' }}
62
+ tags : |
63
+ linkedplanet/ktorbase:latest
64
+ linkedplanet/ktorbase:${{ env.VERSION }}
55
65
56
66
- name : Start KtorBase
57
67
run : docker run -d -p 9090:9090 -e APPLICATION_SECRET=0000000000000000000000000000000 linkedplanet/ktorbase:latest
Original file line number Diff line number Diff line change @@ -7,10 +7,9 @@ plugins {
7
7
// derive gradle version from git tag
8
8
id(" pl.allegro.tech.build.axion-release" ) version " 1.14.3"
9
9
10
- // provide & configure tasks: dependencyUpdates, useLatestVersions
10
+ // provide & configure dependencyUpdates
11
11
id(" com.github.ben-manes.versions" ) version " 0.44.0"
12
12
id(" se.ascp.gradle.gradle-versions-filter" ) version " 0.1.16"
13
- id(" se.patrikerdes.use-latest-versions" ) version " 0.2.18"
14
13
}
15
14
16
15
group = " com.linked-planet"
Original file line number Diff line number Diff line change 1
1
<component name =" ProjectRunConfigurationManager" >
2
- <configuration default =" false" name =" ktorbase [ dependencyUpdates] " type =" GradleRunConfiguration" factoryName =" Gradle" nameIsGenerated =" true" >
2
+ <configuration default =" false" name =" dependencyUpdates" type =" GradleRunConfiguration" factoryName =" Gradle" nameIsGenerated =" true" >
3
3
<ExternalSystemSettings >
4
4
<option name =" executionName" />
5
5
<option name =" externalProjectPath" value =" $PROJECT_DIR$" />
20
20
<DebugAllEnabled >false</DebugAllEnabled >
21
21
<method v =" 2" />
22
22
</configuration >
23
- </component >
23
+ </component >
You can’t perform that action at this time.
0 commit comments