2021-02-19 10:09:40 -06:00
|
|
|
# https://docs.docker.com/ci-cd/github-actions/
|
|
|
|
name: CI to Docker Hub
|
|
|
|
on:
|
|
|
|
push:
|
2021-09-07 14:09:23 -05:00
|
|
|
branches: [master, main]
|
2021-02-19 10:09:40 -06:00
|
|
|
tags: ["*"]
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
2021-04-18 09:02:49 -05:00
|
|
|
timeout-minutes: 60
|
2021-02-19 10:09:40 -06:00
|
|
|
steps:
|
|
|
|
- name: Check Out Repo
|
|
|
|
uses: actions/checkout@v2.3.4
|
|
|
|
with:
|
2021-02-22 09:08:52 -06:00
|
|
|
fetch-depth: 0
|
2022-09-06 13:41:29 -05:00
|
|
|
- name: Setup Scala
|
|
|
|
uses: actions/setup-java@v3
|
|
|
|
with:
|
|
|
|
distribution: 'adopt'
|
2024-04-04 17:09:45 -05:00
|
|
|
java-version: '21'
|
2022-09-06 13:41:29 -05:00
|
|
|
cache: 'sbt'
|
2021-02-19 10:09:40 -06:00
|
|
|
- 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
|
2022-11-16 12:05:59 -06:00
|
|
|
run: sbt "oracleServer/docker:publish;appServer/docker:publish"
|