Skip to content

ci: add/update workflow for autosquash on PRs #42

ci: add/update workflow for autosquash on PRs

ci: add/update workflow for autosquash on PRs #42

Workflow file for this run

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@a78448bc4e8511a19e0362cfc0c450d76ca68b7f # v2.1.0
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@a78448bc4e8511a19e0362cfc0c450d76ca68b7f # v2.1.0
with:
java-version: 17
image-tag: wetransform/hale-cli:latest # image to scan
# don't run tests since this is already done in artifacts
gradle-tasks: clean 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 }}