Skip to content

Commit

Permalink
Add publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
hohonuuli committed Aug 13, 2024
1 parent 241921e commit 52d778c
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
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 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/vampire-squid:${{ github.ref_name }} -t mbari/vampire-squid:latest --push .
2 changes: 1 addition & 1 deletion project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ object Dependencies {
lazy val logbackCore = "ch.qos.logback" % "logback-core" % logbackVersion

lazy val mssqlJdbc = "com.microsoft.sqlserver" % "mssql-jdbc" % "12.8.0.jre11"
lazy val munit = "org.scalameta" %% "munit" % "1.0.0"
lazy val munit = "org.scalameta" %% "munit" % "1.0.1"
lazy val oracleJdbc = "com.oracle.ojdbc" % "ojdbc8" % "19.3.0.0"
lazy val postgresql = "org.postgresql" % "postgresql" % "42.7.3"
lazy val scalatest = "org.scalatest" %% "scalatest" % "3.2.19"
Expand Down

0 comments on commit 52d778c

Please sign in to comment.