Skip to content

Commit

Permalink
Config CI to publish artifacts to JFrog (public)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Li committed Jul 31, 2021
1 parent 542e55a commit 72beea1
Show file tree
Hide file tree
Showing 211 changed files with 826 additions and 2,808 deletions.
7 changes: 2 additions & 5 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
Dear Gobblin maintainers,
Dear DIL maintainers,

Please accept this PR. I understand that it will not be reviewed until I have checked off all the steps below!


### JIRA
- [ ] My PR addresses the following [Gobblin JIRA](https://issues.apache.org/jira/browse/GOBBLIN/) issues and references them in the PR title. For example, "[GOBBLIN-XXX] My Gobblin PR"
- https://issues.apache.org/jira/browse/GOBBLIN-XXX

- [ ] My PR addresses the following [JIRA](https://jira01.corp.linkedin.com:8443/issues) issues and references them in the PR title.

### Description
- [ ] Here are some details about my PR, including screenshots (if applicable):
Expand Down
18 changes: 18 additions & 0 deletions .github/actions/release/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: 'Publish Releases'
description: 'Runs gradle tasks to publish versions to Artifactory and GitHub.'
outputs:
version:
description: "The version tag this created."
value: ${{ steps.get-tag.outputs.tag }}
runs:
using: "composite"
steps:
- id: get-tag
run: echo "::set-output name=tag::$(./gradlew -q getVersion)"
shell: bash
- run: echo Got version ${{ steps.get-tag.outputs.tag }}
shell: bash
- run: ./gradlew build publishToMavenLocal artifactoryPublish -Partifactory.dryRun
shell: bash
- run: ./gradlew ciPerformRelease
shell: bash
35 changes: 35 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Build and Run Tests
on:
push:
branches:
- master
paths-ignore:
- 'docs/**'
- '**.md'
pull_request:
branches:
- master
paths-ignore:
- 'docs/**'
- '**.md'
release:
types: [published, edited]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Gradle build (and test)
run: ./gradlew build
- name: Slack failure notification
if: failure() && github.event_name == 'push'
uses: kpritam/slack-job-status-action@v1
with:
job-status: ${{ job.status }}
slack-bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
channel: github-activities
151 changes: 0 additions & 151 deletions .github/workflows/build_and_test.yaml

This file was deleted.

61 changes: 0 additions & 61 deletions .github/workflows/docker_build_publish.yaml

This file was deleted.

27 changes: 27 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Release and Publish
on:
push:
branches:
- 'master'
paths-ignore:
- 'docs/**'
- '**.md'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
# Needed to get all tags
fetch-depth: 0
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Release
uses: ./.github/actions/release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ARTIFACTORY_USER: ${{ secrets.ARTIFACTORY_USER }}
ARTIFACTORY_KEY: ${{ secrets.ARTIFACTORY_KEY }}
65 changes: 0 additions & 65 deletions .travis.yml

This file was deleted.

Loading

0 comments on commit 72beea1

Please sign in to comment.