2021-02-19 10:09:40 -06:00
|
|
|
# https://docs.docker.com/ci-cd/github-actions/
|
|
|
|
name: CI to Docker Hub
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [master, main, adaptor-dlc]
|
|
|
|
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
|
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
|
2021-02-24 07:03:52 -06:00
|
|
|
run: sbt ++2.13.5 "oracleServer/docker:publish;appServer/docker:publish"
|