Create docker-image.yml

This commit is contained in:
Anthony Stirling 2023-01-28 15:56:34 +00:00 committed by GitHub
parent 957241043e
commit 5a2aa05c44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

40
.github/workflows/docker-image.yml vendored Normal file
View 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 }}