Skip to content
This repository was archived by the owner on Oct 2, 2023. It is now read-only.

Commit da86023

Browse files
authored
Merge pull request #9 from rvema/dockerpush
Automated push to Dockerhub
2 parents 29496dd + dd7e100 commit da86023

8 files changed

Lines changed: 82 additions & 34 deletions

File tree

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@Hygieia/hygieia-scm-github-graphql-collector

.github/stale.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Number of days of inactivity before an issue becomes stale
2+
daysUntilStale: 60
3+
# Number of days of inactivity before a stale issue is closed
4+
daysUntilClose: 7
5+
# Issues with these labels will never be considered stale
6+
exemptLabels:
7+
- bug
8+
- enhancement
9+
- discussion
10+
# Label to use when marking an issue as stale
11+
staleLabel: wontfix
12+
# Comment to post when marking an issue as stale. Set to `false` to disable
13+
markComment: >
14+
This issue has been automatically marked as stale because it has not had
15+
recent activity. It will be closed if no further activity occurs. Thank you
16+
for your contributions.
17+
# Comment to post when closing a stale issue. Set to `false` to disable
18+
closeComment: false
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Java Compile and Test
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
jobs:
8+
build:
9+
runs-on: ubuntu-18.04
10+
11+
steps:
12+
- uses: actions/checkout@v1
13+
- name: Set up JDK 1.8
14+
uses: actions/setup-java@v1
15+
with:
16+
java-version: 1.8
17+
- name: Build with Maven
18+
run: mvn test --file pom.xml
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Release Snapshot
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-18.04
11+
12+
steps:
13+
- uses: actions/checkout@v1
14+
- name: Set up JDK 1.8
15+
uses: actions/setup-java@v1
16+
with:
17+
java-version: 1.8
18+
- name: Release to snapshots repository
19+
run: mvn deploy -q --file pom.xml --settings src/devops/.travis.settings.xml -Denv.OSSRH_USERNAME=${{ secrets.OSSRH_USERNAME }} -Denv.OSSRH_PASSWORD=${{ secrets.OSSRH_PASSWORD }}

.travis.yml

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,29 @@
11
language: java
22
jdk:
3-
- openjdk8
3+
- openjdk8
4+
services:
5+
- docker
6+
47
branches:
58
only:
6-
- master
7-
- gerrit-integration
8-
- "/^v[0-9]+\\.[0-9]+\\.[0-9]+.*$/"
9+
- "/^v[0-9]+\\.[0-9]+\\.[0-9]+.*$/"
10+
911
install: true
12+
1013
before_script:
11-
- sudo chown -R $USER:$GROUP $TRAVIS_BUILD_DIR
14+
- sudo chown -R $USER:$GROUP $TRAVIS_BUILD_DIR
15+
1216
script:
13-
- if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then mvn clean install -q; fi
14-
- if [ "$TRAVIS_PULL_REQUEST" = "false" ] && [ "$TRAVIS_BRANCH" = "master" ]; then
15-
cp ./src/devops/deploy-snapshot.sh . && ./deploy-snapshot.sh; fi
16-
- if [ "$TRAVIS_PULL_REQUEST" = "false" ] && [[ "$TRAVIS_BRANCH" =~ ^v[0-9]+\.[0-9]+\.[0-9]+.*$
17-
]]; then cp ./src/devops/release.sh . && ./release.sh; fi
17+
- if [ "$TRAVIS_PULL_REQUEST" = "false" ] && [[ "$TRAVIS_BRANCH" =~ ^v[0-9]+\.[0-9]+\.[0-9]+.*$ ]]; then cp ./src/devops/release.sh . && ./release.sh; fi
18+
- export TAG=$TRAVIS_BRANCH
19+
- export IMAGE_NAME='hygieiadoc/githubgraphqlscmcollector'
20+
- echo $IMAGE_NAME
21+
- echo $TAG
22+
- docker build -t $IMAGE_NAME .
23+
- docker tag $IMAGE_NAME $IMAGE_NAME:$TAG
24+
- docker login -u $DOCKERHUB_USER -p $DOCKERHUB_PASS
25+
- docker push $IMAGE_NAME
26+
1827
notifications:
1928
webhooks:
2029
urls: https://webhooks.gitter.im/e/48597b0f75dd571734bc
@@ -23,7 +32,8 @@ notifications:
2332
on_start: always
2433
email:
2534
recipients:
26-
- tapabrata.pal@capitalone.com
27-
- ragha.vema@capitalone.com
35+
- tapabrata.pal@capitalone.com
36+
- ragha.vema@capitalone.com
37+
- hygieia2@capitalone.com
2838
on_success: always
2939
on_failure: always

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ENV PROP_FILE /hygieia/config/application.properties
77

88
WORKDIR /hygieia
99

10-
COPY target/*.jar /hygieia
10+
COPY target/*.jar /hygieia/
1111
COPY docker/properties-builder.sh /hygieia/
1212

1313
CMD ./properties-builder.sh &&\

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22

33
[![Build Status](https://travis-ci.com/Hygieia/hygieia-scm-github-graphql-collector.svg?branch=master)](https://travis-ci.com/Hygieia/hygieia-scm-github-graphql-collector)
44
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=Hygieia_hygieia-scm-github-graphql-collector&metric=alert_status)](https://sonarcloud.io/dashboard?id=Hygieia_hygieia-scm-github-graphql-collector)
5+
[![Total alerts](https://img.shields.io/lgtm/alerts/g/Hygieia/hygieia-scm-github-graphql-collector.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/Hygieia/hygieia-scm-github-graphql-collector/alerts/)
6+
[![Language grade: Java](https://img.shields.io/lgtm/grade/java/g/Hygieia/hygieia-scm-github-graphql-collector.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/Hygieia/hygieia-scm-github-graphql-collector/context:java)
57
[![Maven Central](https://img.shields.io/maven-central/v/com.capitalone.dashboard/github-graphql-scm-collector.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22com.capitalone.dashboard%22%20AND%20a:%22github-graphql-scm-collector%22)
68
[![License](https://img.shields.io/badge/license-Apache%202-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0)
79
[![Gitter Chat](https://badges.gitter.im/Join%20Chat.svg)](https://www.apache.org/licenses/LICENSE-2.0)
810
<br>
911
<br>
1012

11-
The README is in the [gh-pages](https://github.com/capitalone/Hygieia/blob/gh-pages/pages/hygieia/collectors/scm/github-graphql.md) branch. Please update it there.
13+
The README is in the [gh-pages](https://github.com/capitalone/Hygieia/blob/gh-pages/pages/hygieia/collectors/scm/github-graphql.md) branch. Please update it there.

docker/Dockerfile

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

0 commit comments

Comments
 (0)