Skip to content

feat: add docker build agent in the pipeline #38

feat: add docker build agent in the pipeline

feat: add docker build agent in the pipeline #38

Workflow file for this run

name: OnlineBookStoreImageBuild

Check failure on line 1 in .github/workflows/build_image.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/build_image.yaml

Invalid workflow file

`pull` is not a valid event name
on: [pull]
jobs:
build-image:
name: Build the image
runs-on: ubuntu:latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Setup java
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- run: mvn --batch-mode --update-snapshots verify
- run: mkdir staging && cp target/*.war staging/books.war
- name: Image build using Dockerfile
run :
docker build -t aapurva/java-webapps:v1.0.0 .