Unverified Commit 982388dd authored by NicolaiO's avatar NicolaiO 🐼
Browse files

Update GitHub pipeline

parent fdf4eec6
Pipeline #8573 passed with stage
in 2 minutes and 1 second
name: Build and push to docker
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build
- name: Publish to Docker Hub
env:
DOCKER_HUB_USERNAME: ${{ secrets.DOCKER_HUB_USERNAME }}
DOCKER_HUB_PASSWORD: ${{ secrets.DOCKER_HUB_PASSWORD }}
run: ./gradlew jib
\ No newline at end of file
name: Java CI with Gradle
name: Perform Release
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
create:
tags:
- version/*
jobs:
build:
release:
runs-on: ubuntu-20.04
......
......@@ -16,7 +16,7 @@ plugins {
}
ext.versionDetails = versionDetails(prefix: "version/")
version versionDetails.lastTag + "-" + versionDetails.gitHash
version gitVersion(prefix: "version/")
allprojects {
repositories {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment