Skip to content

Merge pull request #1641 from dimagi/dependabot/gradle/sentryVersion-… #549

Merge pull request #1641 from dimagi/dependabot/gradle/sentryVersion-…

Merge pull request #1641 from dimagi/dependabot/gradle/sentryVersion-… #549

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