Skip to content

Release

Release #28

Workflow file for this run

name: "Release"
on:
workflow_dispatch:
inputs:
version:
type: string
required: true
description: "Version of the app to be released"
deploy_on_success:
type: boolean
default: false
description: "Automatic deployment on success"
jobs:
tests:
uses: ./.github/workflows/tests.yml
git-release:
uses: sylvanld/github-workflows/.github/workflows/git-tag.yml@main
needs: tests
with:
git_tag: ${{ inputs.version }}
run_before: |
sed -i 's|X.Y.Z|${{ inputs.version }}|g' shopping/api/metadata.py
git add shopping/api/metadata.py
docker-release:
needs: git-release
uses: sylvanld/github-workflows/.github/workflows/docker-release.yml@main
secrets: inherit
with:
git_tag: ${{ inputs.version }}
docker_image_name: sylvanld/shopping-api
docker_image_tags: ${{ inputs.version }}
deploy:
needs: docker-release
if: inputs.deploy_on_success
uses: ./.github/workflows/deploy.yml
secrets: inherit
with:
version: ${{ inputs.version }}