Skip to content

Merge pull request #1631 from dimagi/dependabot/gradle/com.datadoghq-… #541

Merge pull request #1631 from dimagi/dependabot/gradle/com.datadoghq-…

Merge pull request #1631 from dimagi/dependabot/gradle/com.datadoghq-… #541

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