Add content_block script #120
This file contains hidden or 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
| name: 'Build Upgrade on push to upgrade branch' | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| image_repo: | |
| description: 'Image repo' | |
| type: string | |
| required: false | |
| default: 'https://harbor.puzzle.ch' | |
| image_url: | |
| description: 'URL to push image to' | |
| type: string | |
| required: false | |
| default: 'harbor.puzzle.ch/decidim/stzh-dev-rails' | |
| configmanagement: | |
| description: 'Configmanagement to write image tag to' | |
| type: string | |
| required: false | |
| default: 'gitlab.puzzle.ch/pitc_ruby/deployments/decidim/' | |
| configmanagement_branch: | |
| description: 'Configmanagement branch to put the image tag into' | |
| type: string | |
| required: false | |
| default: 'main' | |
| kustomization_path: | |
| description: 'Path to kustomization file' | |
| type: string | |
| required: true | |
| default: './deployments/pitc-decidim-stzh-dev/kustomization.yaml' | |
| identifier: | |
| description: 'Identifier for commit-message, could be a namespace or project-name' | |
| type: string | |
| required: false | |
| default: 'stzh-dev' | |
| push: | |
| branches: | |
| - 'upgrade' | |
| paths-ignore: | |
| - 'doc/**' | |
| - '**.md' | |
| jobs: | |
| build-image: | |
| uses: ./.github/workflows/reusable_lint_test_build_update.yaml | |
| with: | |
| image_repo: ${{ inputs.image_repo || 'https://harbor.puzzle.ch' }} | |
| image_url: ${{ inputs.image_url || 'harbor.puzzle.ch/decidim/stzh-dev-rails' }} | |
| configmanagement: ${{ inputs.configmanagement || 'gitlab.puzzle.ch/pitc_ruby/deployments/decidim/' }} | |
| configmanagement_branch: ${{ inputs.configmanagement_branch || 'main' }} | |
| kustomization_path: ${{ inputs.kustomization_path || './deployments/pitc-decidim-stzh-dev/kustomization.yaml' }} | |
| identifier: ${{ inputs.identifier || 'stzh-dev' }} | |
| lint: false | |
| test: false | |
| secrets: inherit |