Skip to content

Commit 52d778c

Browse files
committed
Add publish action
1 parent 241921e commit 52d778c

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

.github/workflows/release.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Publish to Dockerhub
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
tags:
7+
- "*"
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Set up JDK 21
19+
uses: actions/setup-java@v4
20+
with:
21+
java-version: "21"
22+
distribution: "temurin"
23+
cache: "sbt"
24+
- name: Package and publish
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
run: |
28+
sbt stage
29+
docker login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_TOKEN }}
30+
docker buildx create --name dockerbuilder --platform linux/amd64,linux/arm64 --use
31+
docker buildx build --platform linux/amd64,linux/arm64 -t mbari/vampire-squid:${{ github.ref_name }} -t mbari/vampire-squid:latest --push .

project/Dependencies.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ object Dependencies {
2828
lazy val logbackCore = "ch.qos.logback" % "logback-core" % logbackVersion
2929

3030
lazy val mssqlJdbc = "com.microsoft.sqlserver" % "mssql-jdbc" % "12.8.0.jre11"
31-
lazy val munit = "org.scalameta" %% "munit" % "1.0.0"
31+
lazy val munit = "org.scalameta" %% "munit" % "1.0.1"
3232
lazy val oracleJdbc = "com.oracle.ojdbc" % "ojdbc8" % "19.3.0.0"
3333
lazy val postgresql = "org.postgresql" % "postgresql" % "42.7.3"
3434
lazy val scalatest = "org.scalatest" %% "scalatest" % "3.2.19"

0 commit comments

Comments
 (0)