Skip to content

Merge pull request #1649 from dimagi/reinstateAutoSelectRevert #558

Merge pull request #1649 from dimagi/reinstateAutoSelectRevert

Merge pull request #1649 from dimagi/reinstateAutoSelectRevert #558

name: Publish Docker image
on:
push:
branches: [master]
jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3
with:
submodules: recursive
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'adopt'
- uses: gradle/gradle-build-action@v2
with:
arguments: bootJar
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
context: .
push: true
tags: dimagi/formplayer:latest