8000 Create ci.yml · xenit-eu/docker-postgres@758035c · GitHub
[go: up one dir, main page]

Skip to content

Commit 758035c

Browse files
committed
Create ci.yml
1 parent 1919d31 commit 758035c

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/ci.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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: CI
5+
6+
on:
7+
push:
8+
pull_request:
9+
schedule:
10+
- cron: '5 5 * * 1'
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Set up JDK 11
20+
uses: actions/setup-java@v1
21+
with:
22+
java-version: 11
23+
- name: Grant execute permission for gradlew
24+
run: chmod +x gradlew
25+
- name: Test with Gradle
26+
run: ./gradlew check -i
27+
- name: Publish docker images
28+
if: github.ref == 'refs/heads/release'
29+
run: ./gradlew pushDockerImage -i

0 commit comments

Comments
 (0)
0