bitcoin-s/.github/workflows/docker-publish.yml
Chris Stewart ba4d21c495
Try pinning CI image to ubuntu 22.04 for now as a workaround until setup-java supports sbt installation (#5843)
* Try pinning CI image to ubuntu 22.04 for now as a workaround until setup-java supports sbt installation

* Switch everything else to ubuntu-22.04
2025-01-10 16:31:11 -06:00

28 lines
No EOL
775 B
YAML

# https://docs.docker.com/ci-cd/github-actions/
name: CI to Docker Hub
on:
push:
branches: [master, main]
tags: ["*"]
jobs:
build:
runs-on: ubuntu-22.04
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:
distribution: 'temurin'
java-version: '21.0.4'
cache: 'sbt'
- 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"