Method migrated to AdminService from AdminController and unit test wr… #25
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | |
# This is private repo | |
image: badripaudel77/info_keeper_github_action | |
#tags: v1, latest | |
tags: latest_ga | |
registry: docker.io | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |