Skip to content

Commit 72beea1

Browse files
author
Chris Li
committed
Config CI to publish artifacts to JFrog (public)
1 parent 542e55a commit 72beea1

File tree

211 files changed

+826
-2808
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

211 files changed

+826
-2808
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
1-
Dear Gobblin maintainers,
1+
Dear DIL maintainers,
22

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

5-
65
### JIRA
7-
- [ ] 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"
8-
- https://issues.apache.org/jira/browse/GOBBLIN-XXX
9-
6+
- [ ] My PR addresses the following [JIRA](https://jira01.corp.linkedin.com:8443/issues) issues and references them in the PR title.
107

118
### Description
129
- [ ] Here are some details about my PR, including screenshots (if applicable):

.github/actions/release/action.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: 'Publish Releases'
2+
description: 'Runs gradle tasks to publish versions to Artifactory and GitHub.'
3+
outputs:
4+
version:
5+
description: "The version tag this created."
6+
value: ${{ steps.get-tag.outputs.tag }}
7+
runs:
8+
using: "composite"
9+
steps:
10+
- id: get-tag
11+
run: echo "::set-output name=tag::$(./gradlew -q getVersion)"
12+
shell: bash
13+
- run: echo Got version ${{ steps.get-tag.outputs.tag }}
14+
shell: bash
15+
- run: ./gradlew build publishToMavenLocal artifactoryPublish -Partifactory.dryRun
16+
shell: bash
17+
- run: ./gradlew ciPerformRelease
18+
shell: bash

.github/workflows/build-and-test.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Build and Run Tests
2+
on:
3+
push:
4+
branches:
5+
- master
6+
paths-ignore:
7+
- 'docs/**'
8+
- '**.md'
9+
pull_request:
10+
branches:
11+
- master
12+
paths-ignore:
13+
- 'docs/**'
14+
- '**.md'
15+
release:
16+
types: [published, edited]
17+
18+
jobs:
19+
build:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v2
23+
- name: Set up JDK 1.8
24+
uses: actions/setup-java@v1
25+
with:
26+
java-version: 1.8
27+
- name: Gradle build (and test)
28+
run: ./gradlew build
29+
- name: Slack failure notification
30+
if: failure() && github.event_name == 'push'
31+
uses: kpritam/slack-job-status-action@v1
32+
with:
33+
job-status: ${{ job.status }}
34+
slack-bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
35+
channel: github-activities

.github/workflows/build_and_test.yaml

Lines changed: 0 additions & 151 deletions
This file was deleted.

.github/workflows/docker_build_publish.yaml

Lines changed: 0 additions & 61 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Release and Publish
2+
on:
3+
push:
4+
branches:
5+
- 'master'
6+
paths-ignore:
7+
- 'docs/**'
8+
- '**.md'
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
with:
16+
# Needed to get all tags
17+
fetch-depth: 0
18+
- name: Set up JDK 1.8
19+
uses: actions/setup-java@v1
20+
with:
21+
java-version: 1.8
22+
- name: Release
23+
uses: ./.github/actions/release
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
ARTIFACTORY_USER: ${{ secrets.ARTIFACTORY_USER }}
27+
ARTIFACTORY_KEY: ${{ secrets.ARTIFACTORY_KEY }}

.travis.yml

Lines changed: 0 additions & 65 deletions
This file was deleted.

0 commit comments

Comments
 (0)