Skip to content

Update cicd.yml

Update cicd.yml #5

Workflow file for this run

name: GitHub Action Java CI/CD with Maven
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: '1.8'
distribution: 'adopt'
cache: maven
- name: Build with Maven
run: mvn clean install
- name: Build & push Docker image
uses: mr-smithers-excellent/docker-build-push@v5
with:
image: devendranathashok/my-app
tags: 16022024
registry: docker.io
dockerfile: Dockerfile
username: ${{ secrets.DOCKERUSER }}
password: ${{ secrets.DOCKERPASSWORD }}