Skip to content

Commit

Permalink
use artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
rigazilla committed Jul 4, 2024
1 parent d10b99d commit 4f0daea
Showing 1 changed file with 12 additions and 32 deletions.
44 changes: 12 additions & 32 deletions .github/workflows/ci-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 4f0daea

Please sign in to comment.