added manifests #32
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
# This workflow will build a package using Maven and then publish it to GitHub packages when a release is created | |
# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#apache-maven-with-a-settings-path | |
#comment | |
name: Maven Package Building | |
on: | |
push: | |
branches: [ master ] | |
paths-ignore: ['**/README.md', 'helmcharts/**'] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '11' | |
distribution: 'temurin' | |
# server-id: github # Value of the distributionManagement/repository/id field of the pom.xml | |
# settings-path: ${{ github.workspace }} # location for the settings.xml file | |
- name: Build with Maven | |
run: mvn clean | |
- run: mvn --batch-mode --update-snapshots verify | |
- run: mkdir staging && cp target/*.war staging | |
- run: pwd | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: Package | |
path: staging | |
# - | |
# name: Set up QEMU | |
# uses: docker/setup-qemu-action@v2 | |
# - | |
# name: Set up Docker Buildx | |
# uses: docker/setup-buildx-action@v2 | |
# with: | |
# version: v0.7.0 | |
# - | |
# name: Login to Docker Hub | |
# uses: docker/login-action@v2 | |
# with: | |
# username: ${{ secrets.DOCKERHUB_USERNAME }} | |
# password: ${{ secrets.DOCKERHUB_TOKEN }} | |
# - | |
# name: Build and push | |
# uses: docker/build-push-action@v4 | |
# with: | |
# push: true | |
# tags: naveensmily79/naveen-maven-own:latest | |
- uses: mr-smithers-excellent/docker-build-push@v6 | |
name: Build & push Docker image | |
with: | |
image: naveensmily79/naveen-maven-own | |
tags: v1, latest | |
registry: docker.io | |
dockerfile: Dockerfile | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
# - name: Publish to GitHub Packages Apache Maven | |
# run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml | |
# env: | |
# GITHUB_TOKEN: ${{ github.token }} |