Skip to content

Update Production

Update Production #12

name: 'Update Production'
on:
workflow_dispatch:
inputs:
release:
type: choice
description: "Type of Release: regular, patch or custom"
required: true
default: "regular"
options:
- regular
- patch
- custom
version:
type: string
description: "next version number, if Release is custom"
required: false
branch:
type: string
description: "Branch to be released"
required: false
default: "master"
jobs:
release:
uses: hitobito/hitobito/.github/workflows/release.yml@master
with:
composition: ${{ github.repository }}
release_type: ${{ inputs.release }}
next_version: ${{ inputs.version }}
stage: production
target_branch: ${{ inputs.branch }}
secrets: inherit
version:
uses: hitobito/hitobito/.github/workflows/remote-version.yml@master
needs:
- release
with:
repository_url: ${{ github.repository}}
stage: production
deploy-staging:
uses: hitobito/hitobito/.github/workflows/update_image.yml@master
needs:
- version
with:
repository: gitlab.puzzle.ch/pitc_hit/deployments/hitobito.git
file: ./deployments/hit-sww-staging/kustomization.yaml
image_tag: ${{ needs.version.outputs.version }}
image_ref: rails
identifier: hit-sww-staging
secrets: inherit