forked from infinispan/infinispan-images
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
12 additions
and
32 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,44 +3,24 @@ name: Release Images | |
on: | ||
workflow_call: | ||
inputs: | ||
branch: | ||
description: "The infinispan-images branch to checkout when cutting the release." | ||
required: true | ||
default: "main" | ||
type: string | ||
repository: | ||
description: "The repository to checkout when cutting the release." | ||
required: true | ||
default: "infinispan/infinispan-images" | ||
description: 'Name of the repo to download files from' | ||
type: string | ||
ispnVersion: | ||
description: 'Version of Infinispan artifacts to be used' | ||
required: true | ||
run-id: | ||
description: 'Id of the run to download files from' | ||
type: string | ||
images: | ||
description: 'A comma-separated list of images to be released' | ||
default: 'server, server-native, cli' | ||
name: | ||
description: 'Artifact name to download' | ||
type: string | ||
latest: | ||
description: 'If true, updates the :latest tag to equal this release for each selected image' | ||
default: true | ||
type: boolean | ||
push: | ||
description: 'If false, we skip pushing the image to remote repositories' | ||
default: true | ||
type: boolean | ||
releaseId: | ||
description: 'The release id to download files from' | ||
type: string | ||
|
||
jobs: | ||
download-release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Download Release 1 | ||
uses: robinraju/[email protected] | ||
with: | ||
tag: '${{ github.event.inputs.releaseId }}' | ||
releaseId: '${{ github.event.inputs.releaseId }}' | ||
repository: 'rigazilla/infinispan' | ||
fileName: 'infinispan-server-*.zip' | ||
- name: Download a Build Artifact | ||
uses: actions/[email protected] | ||
with: | ||
repository: '${{ github.event.inputs.repository }}' | ||
run-id: '${{ github.event.inputs.run-id }}' | ||
name: '${{ github.event.inputs.name }}' | ||
github-token: ${{ secrets.GITHUB_TOKEN }} |