Skip to content

test

test #18

Workflow file for this run

name: Backend CD
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: "11"
distribution: "adopt"
- name: Checkout
uses: actions/checkout@v2
- name: Set execute permissions for Gradle Wrapper
run: chmod +x ./gradlew
- name: Build with Gradle
run: ./gradlew bootJar
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
tags: gr4nd/test:latest