From c02f96baf9e50dc00c978fd1b31b23fac82ef126 Mon Sep 17 00:00:00 2001 From: Thomas Burkhalter Date: Sat, 23 Nov 2024 01:00:01 +0100 Subject: [PATCH] Improve image build --- .github/workflows/build-int-on-push.yaml | 29 +++++++++++++++++++ .../reusable_lint_test_build_update.yaml | 6 ++++ 2 files changed, 35 insertions(+) diff --git a/.github/workflows/build-int-on-push.yaml b/.github/workflows/build-int-on-push.yaml index a54b736..f8636bd 100644 --- a/.github/workflows/build-int-on-push.yaml +++ b/.github/workflows/build-int-on-push.yaml @@ -1,6 +1,34 @@ name: 'Build INT on push to master' on: + workflow_dispatch: + inputs: + image_repo: + description: "Image repo" + type: string + required: true + image_url: + description: "URL to push image to" + type: string + required: true + configmanagement: + description: "Configmanagement to write image tag to" + type: string + required: true + configmanagement_branch: + description: "Configmanagement branch to put the image tag into" + type: string + required: false + kustomization_path: + description: "Path to kustomization file" + type: string + required: true + identifier: + description: 'Identifier for commit-message, could be a namespace or project-name' + type: string + required: false + default: 'deployment' + push: branches: - 'master' @@ -24,4 +52,5 @@ jobs: configmanagement: "gitlab.puzzle.ch/pitc_ruby/deployments/decidim/" configmanagement_branch: "main" kustomization_path: "./deployments/pitc-decidim-stzh-int/kustomization.yaml" + identifier: "stzh-int" secrets: inherit diff --git a/.github/workflows/reusable_lint_test_build_update.yaml b/.github/workflows/reusable_lint_test_build_update.yaml index 2881088..825928c 100644 --- a/.github/workflows/reusable_lint_test_build_update.yaml +++ b/.github/workflows/reusable_lint_test_build_update.yaml @@ -23,6 +23,11 @@ on: description: "Path to kustomization file" type: string required: true + identifier: + description: 'Identifier for commit-message, could be a namespace or project-name' + type: string + required: false + default: 'deployment' jobs: lint: @@ -66,3 +71,4 @@ jobs: repository_branch: ${{ inputs.configmanagement_branch }} file: ${{ inputs.kustomization_path }} image_tag: ${{ needs.extract_info.outputs.version }} + identifier: ${{ inputs.identifier }}