Skip to content

Commit

Permalink
Publish docker workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Karasiq committed May 2, 2020
1 parent 97117ee commit 682e750
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 6 deletions.
1 change: 0 additions & 1 deletion .github/workflows/create-deb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: Build DEB

on:
push:
branches: [ master ]
tags:
- v[0-9].[0-9]+.[0-9]+

Expand Down
1 change: 0 additions & 1 deletion .github/workflows/create-exe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: Build EXE

on:
push:
branches: [ master ]
tags:
- v[0-9].[0-9]+.[0-9]+

Expand Down
1 change: 0 additions & 1 deletion .github/workflows/create-pkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: Build PKG

on:
push:
branches: [ master ]
tags:
- v[0-9].[0-9]+.[0-9]+

Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/publish-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Publish docker image

on:
push:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
java-package: jdk+fx
- uses: azure/docker-login@v1
with:
username: karasiq
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Publish docker image
run: |
sbt consoleApp/docker:publish
6 changes: 3 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,14 @@ lazy val dockerSettings = Seq(
dockerEntrypoint ++= Seq(
"-Dshadowcloud.external-config=/opt/docker/sc/shadowcloud.conf",
"-Dshadowcloud.persistence.h2.path=/opt/docker/sc/shadowcloud",
"-Dshadowcloud.drive.fuse.mount-path=/opt/docker/sc/drive",
"-Dshadowcloud.drive.fuse.auto-mount=true",
"-Dshadowcloud.http-server.host=0.0.0.0"
),
dockerCommands := {
val cmds = dockerCommands.value
val injected = Seq(
Cmd("RUN", "apk", "add", "--no-cache", "bash", "fuse"),
Cmd("RUN", "echo 'user_allow_other' >> /etc/fuse.conf")
/* Cmd("RUN", "apt-get", "update", "&&", "apt-get", "install", "-y", "fuse")*/
Cmd("RUN", "apk", "add", "--no-cache", "bash", "fuse")
)
cmds.takeWhile(!_.makeContent.startsWith("USER")) ++ injected ++ cmds.dropWhile(!_.makeContent.startsWith("USER"))
},
Expand Down

0 comments on commit 682e750

Please sign in to comment.