Skip to content

Commit

Permalink
workflow dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
ggrossetie committed Nov 26, 2023
1 parent 66f907a commit 7cff0d8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7cff0d8

Please sign in to comment.