Skip to content

Commit

Permalink
allow inputs
Browse files Browse the repository at this point in the history
Signed-off-by: Rajat Jindal <[email protected]>
  • Loading branch information
rajatjindal committed Nov 5, 2023
1 parent 47cb80f commit e1d0927
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
name: Release Artifacts for AI examples
on:
push:
branches: [oci-push]

workflow_dispatch: {}

inputs:
app:
type: choice
description: Which app to build and push
options:
- newsfeeder-ts
tag:
type: string
description: 'new tag for this push'

env:
REGISTRY: ghcr.io

Expand All @@ -14,6 +21,7 @@ jobs:
steps:
- uses: actions/checkout@v3

- name:
- uses: actions/setup-node@v3
with:
node-version: 19
Expand All @@ -26,18 +34,14 @@ jobs:
github_token: ${{ github.token }}

- name: npm install
working-directory: newsfeeder-ts
working-directory: ${{ github.events.inputs.app }}
run: npm install

- name: check spin version
working-directory: newsfeeder-ts
run: spin --version

- name: build and push
uses: fermyon/actions/spin/push@v1
with:
registry: ${{ env.REGISTRY }}
registry_username: ${{ github.actor }}
registry_password: ${{ secrets.GITHUB_TOKEN }}
registry_reference: "${{ env.REGISTRY }}/fermyon/newsfeeder-ts:test1"
manifest_file: newsfeeder-ts/spin.toml
registry_reference: "${{ env.REGISTRY }}/fermyon/${{ github.events.inputs.app }}:${{ github.events.inputs.tag }}"
manifest_file: ${{ github.events.inputs.app }}/spin.toml

0 comments on commit e1d0927

Please sign in to comment.