Skip to content

fix: CD branch

fix: CD branch #11

Workflow file for this run

name: Publish Docker
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Java
uses: actions/setup-java@v2
with:
java-version: 17
distribution: 'zulu'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew clean build
- name: Login to Dockerhub
uses: docker/login-action@v1
with:
username: ${{secrets.DOCKER_USERNAME}}
password: ${{secrets.DOCKER_PASSWORD}}
- name: Docker Build
run: docker build -t ${{secrets.DOCKER_REPOSITORY}} .
- name: Push on Dockerhub
run: docker push ${{secrets.DOCKER_REPOSITORY}}