Skip to content

Build feat/add-version-8-to-9-converter - amandus #8

Build feat/add-version-8-to-9-converter - amandus

Build feat/add-version-8-to-9-converter - amandus #8

name: Build Docker Image
run-name: Build ${{ inputs.branch }} - ${{ inputs.user }}
on:
workflow_dispatch:
inputs:
repository:
description: 'GitHub repository to create image off.'
required: true
default: 'GIScience/ors-config-migration'
branch:
description: 'GitHub branch to create image off.'
required: true
default: 'main'
tag:
description: 'Name of the docker tag to create.'
required: true
default: 'latest'
user:
description: ''
required: false
default: 'chore'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
repository: ${{ inputs.repository || 'GIScience/ors-config-migration' }}
ref: ${{ inputs.branch || 'main' }}
- name: Set up QEMU
uses: docker/[email protected]
- name: Set up Docker Buildx
uses: docker/[email protected]
- name: Login to DockerHub
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push
uses: docker/[email protected]
with:
context: .
platforms: linux/amd64,linux/arm64/v8
provenance: false
push: true
cache-from: type=gha
cache-to: type=gha,mode=max
tags: heigit/ors-config-migration:${{ inputs.tag || 'latest' }}