Skip to content

Commit

Permalink
added release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hohonuuli committed Aug 13, 2024
1 parent 76b52fe commit b501d07
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Upload site
uses: actions/[email protected]
with:
path: ./target/scala-3.3.1/api
path: ./target/scala-3.3.3/api

deploy:
environment:
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Publish to Dockerhub

on:
workflow_dispatch:
push:
tags:
- "*"

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: "21"
distribution: "temurin"
cache: "sbt"
- name: Package and publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
sbt 'Docker / stage'
cd target/docker/stage
docker login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_TOKEN }}
docker buildx create --name dockerbuilder --platform linux/amd64,linux/arm64 --use
docker buildx build --platform linux/amd64,linux/arm64 -t mbari/raziel:${{ github.ref_name }} -t mbari/raziel:latest --push .
18 changes: 9 additions & 9 deletions project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,21 @@ object Dependencies {
lazy val jasypt = "org.jasypt" % "jasypt" % "1.9.3"
lazy val logback = "ch.qos.logback" % "logback-classic" % "1.5.6"
lazy val methanol = "com.github.mizosoft.methanol" % "methanol" % "1.7.0"
lazy val munit = "org.scalameta" %% "munit" % "1.0.0"
lazy val munit = "org.scalameta" %% "munit" % "1.0.1"
lazy val picocli = "info.picocli" % "picocli" % "4.7.6"

lazy val slf4jVersion = "2.0.13"
lazy val slf4jVersion = "2.0.16"
lazy val slf4jApi = "org.slf4j" % "slf4j-api" % slf4jVersion
lazy val slf4jJul = "org.slf4j" % "jul-to-slf4j" % slf4jVersion

private val tapirVersion = "1.10.15"
lazy val tapirStubServer = "com.softwaremill.sttp.tapir" %% "tapir-sttp-stub-server" % tapirVersion
lazy val tapirSwagger = "com.softwaremill.sttp.tapir" %% "tapir-swagger-ui-bundle" % tapirVersion
lazy val tapirCirce = "com.softwaremill.sttp.tapir" %% "tapir-json-circe" % tapirVersion
lazy val tapirCirceClient = "com.softwaremill.sttp.client3" %% "circe" % "3.9.7"
lazy val tapirVertx = "com.softwaremill.sttp.tapir" %% "tapir-vertx-server" % tapirVersion
private val tapirVersion = "1.11.1"
lazy val tapirStubServer = "com.softwaremill.sttp.tapir" %% "tapir-sttp-stub-server" % tapirVersion
lazy val tapirSwagger = "com.softwaremill.sttp.tapir" %% "tapir-swagger-ui-bundle" % tapirVersion
lazy val tapirCirce = "com.softwaremill.sttp.tapir" %% "tapir-json-circe" % tapirVersion
lazy val tapirCirceClient = "com.softwaremill.sttp.client3" %% "circe" % "3.9.8"
lazy val tapirVertx = "com.softwaremill.sttp.tapir" %% "tapir-vertx-server" % tapirVersion


lazy val typesafeConfig = "com.typesafe" % "config" % "1.4.3"
lazy val zio = "dev.zio" %% "zio" % "2.1.6"
lazy val zio = "dev.zio" %% "zio" % "2.1.7"
}

0 comments on commit b501d07

Please sign in to comment.