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 23, 2024
1 parent 30b165c commit b0bdbda
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 b0bdbda

Please sign in to comment.