Skip to content

Docker build steps

Docker build steps #15

Workflow file for this run

name: Build
on: [push]
jobs:
build:
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: temurin
cache: maven
- name: Build & package JAR
run: mvn -B package spring-boot:repackage
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Login to container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build & push Docker image
uses: docker/build-push-action@v5
with:
push: true
tags: ghcr.io/imx-org/orchestrate-imxgeo:${{ env.GITHUB_SHA }}