mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2025-08-16 13:47:28 +02:00
Create docker-image.yml
This commit is contained in:
parent
957241043e
commit
5a2aa05c44
40
.github/workflows/docker-image.yml
vendored
Normal file
40
.github/workflows/docker-image.yml
vendored
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
name: Docker Image CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ "main" ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ "main" ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
|
||||||
|
build:
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Set up JDK 17
|
||||||
|
uses: actions/setup-java@v3
|
||||||
|
with:
|
||||||
|
java-version: '17'
|
||||||
|
distribution: 'temurin'
|
||||||
|
|
||||||
|
|
||||||
|
- uses: gradle/gradle-build-action@v2.3.3
|
||||||
|
with:
|
||||||
|
gradle-version: 7.6
|
||||||
|
arguments: clean build
|
||||||
|
|
||||||
|
- name: versionNumber
|
||||||
|
uses: gradle/gradle-build-action@v2.3.3
|
||||||
|
with:
|
||||||
|
gradle-version: 7.6
|
||||||
|
arguments: printVersion -q
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
- name: Build the Docker image
|
||||||
|
run: docker build . --file Dockerfile --tag frooodle/s-pdf:${{ steps.versionNumber.outputs.stdout }}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user