Skip to content

Build Docker Images #88

Build Docker Images

Build Docker Images #88

name: Build Docker Images
on:
workflow_dispatch:
inputs:
tag:
description: "Docker Image Tag"
required: false
default: "development-tag"
env:
REGISTRY: ghcr.io
TAG: ${{ github.event.inputs.tag }}
UNITY-SPS-OGC-PROCESSES-API: ${{ github.repository }}/unity-sps-ogc-processes-api
jobs:
build-unity-sps-ogc-processes-api:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for the Unity SPS OGC Processes API Docker image
id: metascheduler
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.UNITY-SPS-OGC-PROCESSES-API }}
- name: Build and push the Unity SPS OGC Processes API Docker image
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile
push: true
tags: ${{ env.REGISTRY }}/${{ env.UNITY-SPS-OGC-PROCESSES-API }}:${{ env.TAG }}
labels: ${{ steps.metascheduler.outputs.labels }}