From 7cff0d842cfb05403e4e4c8945c4651e29ce88c6 Mon Sep 17 00:00:00 2001 From: Guillaume Grossetie Date: Sun, 26 Nov 2023 11:59:12 +0100 Subject: [PATCH] workflow dispatch --- .github/workflows/docker.yml | 9 ++++++--- .github/workflows/release.yml | 5 +++++ 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index b2e9de837..55ca19058 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -1,9 +1,12 @@ name: Build and deploy Docker images on: + workflow_call: + inputs: + release-version: + required: true + type: string push: - tags: - - 'v*' # Push events to matching v*, i.e. v1.0, v2.1.3 branches: - master paths: @@ -43,7 +46,7 @@ jobs: packages: write env: - TAG: ${{ (github.ref_type == 'tag') && github.ref_name || 'latest' }} + TAG: ${{ inputs.release-version || 'latest' }} steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 46ee1f0b6..3f0bd01be 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -34,3 +34,8 @@ jobs: git push origin "v$RELEASE_VERSION" env: RELEASE_VERSION: ${{ inputs.version }} + call-build-deploy-docker: + uses: EcrituresNumeriques/stylo/.github/workflows/docker.yml@master + with: + release-version: ${{ inputs.version }} + secrets: inherit