Skip to content

Commit

Permalink
docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
molarmanful committed Aug 27, 2023
1 parent 550abeb commit 3042cf6
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 19
java-version: 20
- uses: coursier/cache-action@v6
- name: gpg
uses: crazy-max/ghaction-import-gpg@v5
Expand All @@ -35,7 +35,8 @@ jobs:
--sonatypeSnapshotUri https://s01.oss.sonatype.org/content/repositories/snapshots \
--awaitTimeout 600000 \
--release true
github:
github_docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -44,7 +45,7 @@ jobs:
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 19
java-version: 20
- uses: coursier/cache-action@v6
- name: build
run: ./mill sclin.assembly
Expand All @@ -53,3 +54,12 @@ jobs:
with:
file: out/sclin/assembly.dest/out.jar
asset_name: sclin
- uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- uses: docker/build-push-action@v3
with:
context: .
push: true
tags: molarmanful/sclin:latest
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# assumes assembled

FROM ubuntu as pre

RUN mkdir scbin
COPY out/sclin/assembly.dest/out.jar /scbin/sclin

0 comments on commit 3042cf6

Please sign in to comment.