Skip to content

added new branch

added new branch #1

Workflow file for this run

name: Build and publish Docker image
on:
push:
branches: ["main", "feature/pipeline"]
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'temurin'
- name: Set up Maven
uses: stCarolas/setup-maven@v4
with:
maven-version: '3.8.6'
- name: Build with maven
run: mvn clean package -DskipTests
- name: Login to Github container registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: |
ghcr.io/stevensblueprint/orservice:${{ github.sha }}
ghcr.io/stevensblueprint/orservice:latest