Skip to content

push to docker hub

push to docker hub #17

Workflow file for this run

name: Java CI with Maven
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK 1.8
uses: actions/setup-java@v4
with:
java-version: '8'
distribution: 'temurin'
- name: Build with Maven
run: chmod +x mvnw
- name: Install
run: echo 'Hello Badri Paudel'
- name: Run APP
run: ./mvnw spring-boot:run
- name : Build and push docker image
uses: mr-smithers-excellent/docker-build-push@v6
with:
image: badripaudel77/info_keeper_main_image
tags: v1, latest
registry: registry-url.io
dockerfile: Dockerfile.ci
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}