Build Docker Images #91
Workflow file for this run
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
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 }} |