File tree Expand file tree Collapse file tree 6 files changed +63
-0
lines changed
src/main/kotlin/by/jprof/telegram/bot/herald Expand file tree Collapse file tree 6 files changed +63
-0
lines changed Original file line number Diff line number Diff line change 4444 - id : URL
4545 run : echo "::set-output name=URL::$(jq -r '.JProfByBotStack.URL' cdk.out/outputs.json)"
4646 working-directory : .deploy/lambda
47+
48+ herald :
49+ name : Herald
50+ runs-on : ubuntu-latest
51+ steps :
52+ - uses : actions/checkout@v2
53+
54+ - uses : actions/setup-java@v2
55+ with :
56+ distribution : adopt
57+ java-version : 17
58+
59+ - uses : gradle/wrapper-validation-action@v1
60+
61+ - uses : gradle/gradle-build-action@v2
62+ with :
63+ arguments : :herald:install
64+ cache-read-only : ${{ github.ref != 'refs/heads/master' }}
65+
66+ - uses : docker/metadata-action@v3
67+ id : metadata
68+ with :
69+ images : |
70+ ghcr.io/${{ github.repository_owner }}/herald
71+ flavor : |
72+ latest=true
73+
74+ - uses : docker/login-action@v1
75+ with :
76+ registry : ghcr.io
77+ username : ${{ github.repository_owner }}
78+ password : ${{ secrets.GITHUB_TOKEN }}
79+
80+ - uses : docker/build-push-action@v2
81+ with :
82+ context : herald
83+ push : true
84+ tags : ${{ steps.metadata.outputs.tags }}
85+ labels : ${{ steps.metadata.outputs.labels }}
Original file line number Diff line number Diff line change 1+ ARG JAVA=17
2+
3+ FROM openjdk:${JAVA}
4+
5+ COPY build/install/* /opt/herald
6+
7+ ENTRYPOINT ["/opt/herald/bin/herald" ]
Original file line number Diff line number Diff line change 1+ = Herald
2+
3+ This feature posts scheduled messages to the chat.
Original file line number Diff line number Diff line change 1+ plugins {
2+ kotlin(" jvm" )
3+ application
4+ }
5+
6+ application {
7+ mainClass.set(" by.jprof.telegram.bot.herald.AppKt" )
8+ }
Original file line number Diff line number Diff line change 1+ package by.jprof.telegram.bot.herald
2+
3+ suspend fun main (args : Array <String >) {
4+ println (" Hello, world!" )
5+ }
Original file line number Diff line number Diff line change @@ -30,3 +30,4 @@ include(":pins:dynamodb")
3030include(" :pins:sfn" )
3131include(" :runners:lambda" )
3232include(" :currencies" )
33+ include(" :herald" )
You can’t perform that action at this time.
0 commit comments