-
Notifications
You must be signed in to change notification settings - Fork 6
40 lines (36 loc) · 1.39 KB
/
publish.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
name: Publish
on:
push:
branches:
- master
workflow_dispatch: {}
concurrency:
# only run one publishing at a time to avoid conflicts in artifactory
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
artifacts:
uses: wetransform/gha-workflows/.github/workflows/gradle-library.yml@39472b0820006f75ebd19b348939b163d7bd8a6a # v3.3.2
with:
java-version: 17
build-tasks: clean check distZip buildDeb
publish-tasks: publish
upload-artifact-path: build/distributions
upload-artifact-name: distributions
secrets:
SLACK_NOTIFICATIONS_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}
WETF_ARTIFACTORY_USER: ${{ secrets.WETF_ARTIFACTORY_USER }}
WETF_ARTIFACTORY_PASSWORD: ${{ secrets.WETF_ARTIFACTORY_PASSWORD }}
docker:
uses: wetransform/gha-workflows/.github/workflows/gradle-service-publish.yml@39472b0820006f75ebd19b348939b163d7bd8a6a # v3.3.2
with:
java-version: 17
image-tag: wetransform/hale-cli:latest # image to scan
# don't run tests since this is already done in artifacts
build-tasks: clean
publish-tasks: dockerPushImage
expect-tests: false
secrets:
DOCKER_HUB_USERNAME: ${{ secrets.DOCKER_HUB_USERNAME }}
DOCKER_HUB_PASSWORD: ${{ secrets.DOCKER_HUB_PASSWORD }}
SLACK_NOTIFICATIONS_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}