forked from bitcoin-s/bitcoin-s
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (32 loc) · 988 Bytes
/
docker-publish.yml
File metadata and controls
32 lines (32 loc) · 988 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# https://docs.docker.com/ci-cd/github-actions/
name: CI to Docker Hub
on:
push:
branches: [master, main]
tags: ["*"]
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Check Out Repo
uses: actions/checkout@v2.3.4
with:
fetch-depth: 0
- name: Setup Scala
uses: actions/setup-java@v3
with:
# for some reason there seems to be a bug in the temurin runtime with jlink/jdeps
# this can likely be reverted back to temurin in the future
distribution: 'zulu'
java-version: '25'
cache: 'sbt'
- name: Install sbt
uses: sbt/setup-sbt@v1
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Build and push
run: sbt "oracleServer/docker:publish;appServer/docker:publish"