This repository was archived by the owner on Jan 12, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +76
-30
lines changed Expand file tree Collapse file tree 5 files changed +76
-30
lines changed Original file line number Diff line number Diff line change
1
+ * @ Nike-Inc/Zookeepers
Original file line number Diff line number Diff line change
1
+ # This workflow will build a Java project with Gradle
2
+ # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
3
+
4
+ name : Build
5
+ on :
6
+ push :
7
+ branches :
8
+ - ' **'
9
+ pull_request :
10
+ branches : [ master ]
11
+ jobs :
12
+ Build-and-Release :
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - uses : actions/checkout@v2
16
+ - name : Set up JDK 8
17
+ uses : actions/setup-java@v1
18
+ with :
19
+ java-version : 8
20
+ - name : Grant execute permission for gradlew
21
+ run : chmod +x gradlew
22
+ - name : Build with Gradle
23
+ run : ./gradlew clean cerberus-log-processor-lambda:shadowJar
24
+ - name : Slack notification when release fails
25
+ if : ${{ failure() }}
26
+
27
+ env :
28
+ SLACK_WEBHOOK : ${{ secrets.SLACK_WEBHOOK }}
29
+ SLACK_CHANNEL : cerberus-alerts
30
+ SLACK_MESSAGE : ' Cerberus Serverless Components main build has failed :build-failed:'
31
+ SLACK_ICON : https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png
32
+ SLACK_TITLE : Cerberus Build Failure Notification
33
+ SLACK_USERNAME : GitHub Actions
Original file line number Diff line number Diff line change
1
+ # This workflow will build a Java project with Gradle
2
+ # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
3
+
4
+ name : Release
5
+
6
+ on :
7
+ push :
8
+ # Sequence of patterns matched against refs/tags
9
+ tags :
10
+ - ' v*' # Push events to matching v*, i.e. v1.0, v20.15.10
11
+ jobs :
12
+ Build-and-Release :
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - uses : actions/checkout@v2
16
+ - name : Set up JDK 8
17
+ uses : actions/setup-java@v1
18
+ with :
19
+ java-version : 8
20
+ - name : Grant execute permission for gradlew
21
+ run : chmod +x gradlew
22
+ - name : Build with Gradle
23
+ run : ./gradlew clean cerberus-log-processor-lambda:shadowJar
24
+ - name : Upload to GitHub release
25
+ uses : svenstaro/upload-release-action@v2
26
+ with :
27
+ repo_token : ${{ secrets.GITHUB_TOKEN }}
28
+ file : cerberus-log-processor-lambda/build/libs/cerberus-log-processor-lambda*
29
+ tag : ${{ github.ref }}
30
+ file_glob : true
31
+
32
+ - name : Slack notification when release fails
33
+ if : ${{ failure() }}
34
+
35
+ env :
36
+ SLACK_WEBHOOK : ${{ secrets.SLACK_WEBHOOK }}
37
+ SLACK_CHANNEL : cerberus-alerts
38
+ SLACK_MESSAGE : ' Cerberus Serverless Components release has failed :build-failed:'
39
+ SLACK_ICON : https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png
40
+ SLACK_TITLE : Cerberus Build Failure Notification
41
+ SLACK_USERNAME : GitHub Actions
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
# Cerberus Serverless Components
2
2
3
- [ ![ ] [ travis img ]] [ travis ]
4
- [ ![ Coverage Status] ( https://coveralls.io/repos/github/Nike-Inc/cerberus-serverless-components/badge.svg )] ( https://coveralls.io/github/Nike-Inc/cerberus-serverless-components )
3
+ ![ Build] ( https://github.com/Nike-Inc/cerberus-serverless-components/workflows/Build/badge.svg )
5
4
[ ![ ] [ license img ]] [ license ]
6
5
7
6
This project contains the serverless components that can be used with Cerberus.
@@ -34,8 +33,5 @@ We keep our profiles in a separate repo and create soft links to the profile dir
34
33
35
34
This project is released under the [ Apache License, Version 2.0] ( http://www.apache.org/licenses/LICENSE-2.0 )
36
35
37
- [ travis ] :https://travis-ci.org/Nike-Inc/cerberus-serverless-components
38
- [ travis img ] :https://api.travis-ci.org/Nike-Inc/cerberus-serverless-components.svg?branch=master
39
-
40
36
[ license ] :LICENSE.txt
41
37
[ license img ] :https://img.shields.io/badge/License-Apache%202-blue.svg
You can’t perform that action at this time.
0 commit comments