Skip to content

DEPRECATED - Build Quesma container image for customers and prospects (private beta repository) #20

DEPRECATED - Build Quesma container image for customers and prospects (private beta repository)

DEPRECATED - Build Quesma container image for customers and prospects (private beta repository) #20

name: Build Quesma container image for customers and prospects (private beta repository)
on:
workflow_dispatch:
inputs:
GIT_REF:
description: 'Commit hash to use for the release (can be a branch name or tag)'
required: true
VERSION_TAG:
description: 'Version tag for the released Docker image'
required: true
LICENSE_KEY:
description: 'License key - when empty, development key will be used'
default: 'cdd749a3-e777-11ee-bcf8-0242ac150004'
required: false
jobs:
build-and-publish-quesma-docker-image:
strategy:
matrix:
module: [ "quesma" ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.GIT_REF }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GCR
uses: docker/login-action@v3
with:
registry: europe-central2-docker.pkg.dev
username: _json_key
password: ${{ secrets.GCR_SERVICE_ACCOUNT_PRIVATE_KEY }}
- name: Build and export
uses: docker/build-push-action@v5
with:
context: ${{ matrix.module }}/.
tags: europe-central2-docker.pkg.dev/metal-figure-407109/quesma-private-beta/quesma:${{ github.event.inputs.VERSION_TAG }}
push: ${{ github.event_name == 'workflow_dispatch' }}
build-args: |
QUESMA_BUILD_SHA=${{ github.sha }}
QUESMA_VERSION=${{ github.event.inputs.VERSION_TAG }}
QUESMA_LICENSE_KEY=${{ github.event.inputs.LICENSE_KEY }}
platforms: linux/amd64,linux/arm64