Build Docker Image #442
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
#---------------------------------------------------------- | |
# This file is part of the gitlab-arm64 project. | |
# | |
# (c) Festim Kolgeci <festim.kolgei@pm.me> | |
# | |
# For complete copyright and license details, please refer | |
# to the LICENSE file distributed with this source code. | |
#---------------------------------------------------------- | |
name: Build Docker Image | |
on: | |
workflow_dispatch: | |
inputs: | |
gitlab_release: | |
type: string | |
description: "GitLab Release Docker-Tag (e.g. 17.6.1-ce.0)" | |
required: true | |
include_major_minor_tag: | |
type: boolean | |
description: "Update 'major.minor' tag (e.g. 17.6-ce)" | |
required: false | |
default: false | |
include_major_tag: | |
type: boolean | |
description: "Update 'major' tag (e.g. 17-ce)" | |
required: false | |
default: false | |
include_latest_tags: | |
type: boolean | |
description: "Only for newest release 'edition' (e.g. ce), and 'latest'" | |
required: false | |
default: false | |
jobs: | |
call-build-workflow: | |
if: ${{ github.repository_owner == 'feskol' && github.ref == 'refs/heads/main' }} # Only on the main branch and exclude forked repositories | |
uses: ./.github/workflows/_shared-build.yml | |
secrets: inherit | |
with: | |
gitlab_release: ${{ github.event.inputs.gitlab_release }} | |
include_major_minor_tag: ${{ fromJson(github.event.inputs.include_major_minor_tag) }} | |
include_major_tag: ${{ fromJson(github.event.inputs.include_major_tag) }} | |
include_latest_tags: ${{ fromJson(github.event.inputs.include_latest_tags) }} | |
is_test: false |