Skip to content

Commit 15cd800

Browse files
committed
Fix prod build on release, improve int build on push
1 parent 760eb1f commit 15cd800

2 files changed

Lines changed: 28 additions & 26 deletions

File tree

.github/workflows/build-int-on-push.yaml

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,35 @@ on:
44
workflow_dispatch:
55
inputs:
66
image_repo:
7-
description: "Image repo"
7+
description: 'Image repo'
88
type: string
9-
required: true
9+
required: false
10+
default: 'https://harbor.puzzle.ch'
1011
image_url:
11-
description: "URL to push image to"
12+
description: 'URL to push image to'
1213
type: string
13-
required: true
14+
required: false
15+
default: 'harbor.puzzle.ch/decidim/stzh-int-rails'
1416
configmanagement:
15-
description: "Configmanagement to write image tag to"
17+
description: 'Configmanagement to write image tag to'
1618
type: string
17-
required: true
19+
required: false
20+
default: 'gitlab.puzzle.ch/pitc_ruby/deployments/decidim/'
1821
configmanagement_branch:
19-
description: "Configmanagement branch to put the image tag into"
22+
description: 'Configmanagement branch to put the image tag into'
2023
type: string
2124
required: false
25+
default: 'main'
2226
kustomization_path:
23-
description: "Path to kustomization file"
27+
description: 'Path to kustomization file'
2428
type: string
2529
required: true
30+
default: './deployments/pitc-decidim-stzh-int/kustomization.yaml'
2631
identifier:
2732
description: 'Identifier for commit-message, could be a namespace or project-name'
2833
type: string
2934
required: false
30-
default: 'deployment'
35+
default: 'stzh-int'
3136

3237
push:
3338
branches:
@@ -41,16 +46,10 @@ jobs:
4146
build-image:
4247
uses: ./.github/workflows/reusable_lint_test_build_update.yaml
4348
with:
44-
# repository: gitlab.puzzle.ch/pitc_ruby/deployments/decidim.git
45-
# file: ./deployments/${{ needs.settings.outputs.namespace_name }}/kustomization.yaml
46-
# image_tag: ${{ needs.version.outputs.version }}
47-
# image_ref: rails
48-
# identifier: ${{ needs.settings.outputs.namespace_name }}
49-
50-
image_repo: "https://harbor.puzzle.ch"
51-
image_url: "harbor.puzzle.ch/decidim/stzh-int-rails"
52-
configmanagement: "gitlab.puzzle.ch/pitc_ruby/deployments/decidim/"
53-
configmanagement_branch: "main"
54-
kustomization_path: "./deployments/pitc-decidim-stzh-int/kustomization.yaml"
55-
identifier: "stzh-int"
49+
image_repo: ${{ inputs.image_repo }}
50+
image_url: ${{ inputs.image_url }}
51+
configmanagement: ${{ inputs.configmanagement }}
52+
configmanagement_branch: ${{ inputs.configmanagement_branch }}
53+
kustomization_path: ${{ inputs.kustomization_path }}
54+
identifier: ${{ inputs.identifier }}
5655
secrets: inherit

.github/workflows/build-prod-on-release.yaml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,13 @@ on:
99
branches:
1010
- master
1111
jobs:
12-
build_image:
13-
uses: ./.github/workflows/lint_test_build_update.yaml
14-
secrets: inherit
12+
build-image:
13+
uses: ./.github/workflows/reusable_lint_test_build_update.yaml
1514
with:
16-
image_repo: "harbor.puzzle.ch/decidim/stzh/prod/rails"
15+
image_repo: "https://harbor.puzzle.ch"
16+
image_url: "harbor.puzzle.ch/decidim/stzh-prod-rails"
1717
configmanagement: "gitlab.puzzle.ch/pitc_ruby/deployments/decidim/"
18-
kustomization_path: "./deployments/pitc-stzh-decidim-prod/kustomization.yaml"
18+
configmanagement_branch: "main"
19+
kustomization_path: "./deployments/pitc-decidim-stzh-prod/kustomization.yaml"
20+
identifier: "stzh-prod"
21+
secrets: inherit

0 commit comments

Comments
 (0)