Update dependency org.apache.httpcomponents:httpclient to v4.5.14 #1085
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: [push, pull_request] | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: '11' | |
distribution: 'adopt' | |
- name: Cache Gradle packages | |
uses: actions/cache@v2 | |
with: | |
path: ~/.m2 | |
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
restore-keys: ${{ runner.os }}-m2 | |
- name: Login to DockerHub | |
uses: docker/login-action@v1 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Pull postgress docker image for functional tests | |
run: docker pull postgres:9.6.12 | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Build with gradle & generate reports | |
env: | |
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_KEY }} | |
run: ./gradlew clean check -i codeCoverageReport coveralls | |
- name: Cache build files | |
uses: actions/cache@v2 | |
id: cache-build | |
with: | |
path: ./* | |
key: ${{ github.sha }} | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
needs: build | |
if: github.ref == 'refs/heads/master' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Retrieve files from cache | |
uses: actions/cache@v2 | |
id: cache-build | |
with: | |
path: ./* | |
key: ${{ github.sha }} | |
- name: Login to DockerHub | |
uses: docker/login-action@v1 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Build judge-d-server docker image | |
run: ./gradlew judge-d-server:dockerTag | |
- name: Push judge-d docker image to DockerHub | |
run: docker push --all-tags hltech/judge-d | |
- name: Push to heroku registry | |
run: | | |
docker login -u _ -p $HEROKU_API_KEY registry.heroku.com | |
docker tag hltech/judge-d registry.heroku.com/judge-d/web | |
docker push registry.heroku.com/judge-d/web | |
env: | |
HEROKU_API_KEY: ${{secrets.HEROKU_API_KEY}} | |
- name: Release judge-d on Heroku | |
run: | | |
heroku container:login | |
heroku container:release web -a $HEROKU_APP_NAME | |
env: | |
HEROKU_API_KEY: ${{secrets.HEROKU_API_KEY}} | |
HEROKU_APP_NAME : "judge-d" | |
- name: Build docker image for agent | |
run: ./gradlew judge-d-agent:dockerTag | |
- name: Publish judge-d-agent docker image to DockerHub | |
run: docker push --all-tags hltech/judge-d-agent |