Skip to content

Commit

Permalink
Improve image build
Browse files Browse the repository at this point in the history
  • Loading branch information
Kagemaru committed Nov 28, 2024
1 parent c4d05af commit a870a55
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/build-int-on-push.yaml
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -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
6 changes: 6 additions & 0 deletions .github/workflows/reusable_lint_test_build_update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -66,3 +71,4 @@ jobs:
repository_branch: ${{ inputs.configmanagement_branch }}
file: ${{ inputs.kustomization_path }}
image_tag: ${{ needs.extract_info.outputs.version }}
identifier: ${{ inputs.identifier }}

0 comments on commit a870a55

Please sign in to comment.