aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Odersky <jakob@odersky.com>2019-09-22 16:42:05 -0400
committerJakob Odersky <jakob@odersky.com>2019-09-22 16:47:17 -0400
commit14316f206af70fd79994028123498a5b70b3f92f (patch)
tree6ef93403705428c4c20150c3eaf60fbb20d4d0b7
parentedce0b5a9b773ea33c0b137e3f216051ea028220 (diff)
downloadcommando-14316f206af70fd79994028123498a5b70b3f92f.tar.gz
commando-14316f206af70fd79994028123498a5b70b3f92f.tar.bz2
commando-14316f206af70fd79994028123498a5b70b3f92f.zip
Package mill as a container image
-rw-r--r--.github/workflows/main.yml24
-rw-r--r--ci/mill/Dockerfile12
-rw-r--r--ci/test/Dockerfile3
3 files changed, 26 insertions, 13 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 8fdd637..09ef970 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -3,20 +3,24 @@ name: CI
on: [push]
jobs:
- build:
+ build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Import key
run: echo "${{secrets.GPG_KEY}}" | gpg --import
- - name: Setup mill
- run: |
- curl -L https://github.com/lihaoyi/mill/releases/download/0.5.1/0.5.1 | sudo tee /usr/local/bin/mill > /dev/null
- sudo chmod +x /usr/local/bin/mill
- - name: Run tests
- run: mill commando.test
- - name: Publish
- run: mill mill.scalalib.PublishModule/publishAll --sonatypeCreds "8VNUX6+2:${{secrets.dummy}}" --publishArtifacts __.publishArtifacts
- - uses: ./ci/test
+ - name: run tests
+ uses: ./ci/mill
+ with:
+ args: commando.test
+ # - name: Setup mill
+ # run: |
+ # curl -L https://github.com/lihaoyi/mill/releases/download/0.5.1/0.5.1 | sudo tee /usr/local/bin/mill > /dev/null
+ # sudo chmod +x /usr/local/bin/mill
+ # - name: Run tests
+ # run: mill commando.test
+ # - name: Publish
+ # run: mill mill.scalalib.PublishModule/publishAll --sonatypeCreds "8VNUX6+2:${{secrets.dummy}}" --publishArtifacts __.publishArtifacts
+ # - uses: ./ci/test
diff --git a/ci/mill/Dockerfile b/ci/mill/Dockerfile
new file mode 100644
index 0000000..af1ba37
--- /dev/null
+++ b/ci/mill/Dockerfile
@@ -0,0 +1,12 @@
+FROM debian:bullseye
+
+RUN apt-get update && apt-get install --yes \
+ curl \
+ openjdk-11-jdk \
+ && rm -rf /var/lib/apt/lists/*
+
+RUN curl -L https://github.com/lihaoyi/mill/releases/download/0.5.1/0.5.1 > \
+ /usr/local/bin/mill \
+ && chmod +x /usr/local/bin/mill
+
+ENTRYPOINT [ "/usr/local/bin/mill" ]
diff --git a/ci/test/Dockerfile b/ci/test/Dockerfile
deleted file mode 100644
index 00b7b89..0000000
--- a/ci/test/Dockerfile
+++ /dev/null
@@ -1,3 +0,0 @@
-FROM debian:bullseye
-
-CMD [ "echo", "hello world!"]