-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (36 loc) · 1.17 KB
/
gradle_ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Build
on:
push:
workflow_dispatch:
permissions:
contents: write
jobs:
build:
uses: RakambdaOrg/rakambda-github-workflows/.github/workflows/gradle-build.yml@main
with:
java-version: ${{ vars.JAVA_VERSION }}
artifact-name: Gradle-Libs
dropbox:
uses: RakambdaOrg/rakambda-github-workflows/.github/workflows/dropbox-publish-artifact.yml@main
if: ${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
needs:
- build
with:
artifact-name: Gradle-Libs
source: "ftpfetcher-shaded.jar"
target: "/Documents/JARs/FTPFetcher.jar"
secrets:
dropbox-token: ${{ secrets.DROPBOX_TOKEN }}
docker:
uses: RakambdaOrg/rakambda-github-workflows/.github/workflows/gradle-jib-publish.yml@main
if: ${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
needs:
- build
with:
java-version: ${{ vars.JAVA_VERSION }}
docker-image: ${{ vars.DOCKER_IMAGE }}
docker-tag: latest
secrets:
docker-repo: ${{ secrets.DOCKER_REPO }}
docker-username: ${{ secrets.DOCKER_USERNAME }}
docker-token: ${{ secrets.DOCKER_TOKEN }}