Skip to content

Connect image to repository #18

Connect image to repository

Connect image to repository #18

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:
context: .
push: true
tags: ghcr.io/imx-org/orchestrate-imxgeo:${{ github.sha }}