generated from unity-sds/unity-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (36 loc) · 1.24 KB
/
build_docker_images.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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 }}