Switch to Java 16, make docker context contain only jar

This commit is contained in:
Kiran Shila
2021-09-21 18:22:32 -07:00
parent f895303db8
commit b41266f969
3 changed files with 7 additions and 11 deletions

View File

@@ -1,6 +0,0 @@
.github/
logos/
screenshots/
.gitignore
LICENSE
README.md

View File

@@ -20,16 +20,18 @@ jobs:
uses: actions/setup-java@v2
with:
distribution: "adopt"
java-version: "11"
java-version: "16"
- name: Install clojure tools
uses: DeLaGuardo/setup-clojure@3.5
with:
cli: 1.10.3.943
- name: Build bot
run: clojure -T:build uber
- name: Build bot and copy out jar for docker
shell: bash
run: |
clojure -T:build uber
cp target/doplarr.jar docker
- name: Release tagged version
uses: softprops/action-gh-release@v1
@@ -56,7 +58,7 @@ jobs:
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
context: docker
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

View File

@@ -1,4 +1,4 @@
FROM adoptopenjdk/openjdk11:alpine-jre
FROM adoptopenjdk/openjdk16:alpine-jre
WORKDIR /app