Skip to content

Commit

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

workflow_dispatch: {}

env:
REGISTRY: ghcr.io
REPOSITORY: ${{ github.repository }}

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: 19

- name: setup spin
uses: fermyon/actions/spin/setup
with:
version: v2.0.0
plugins: js2wasm
github_token: ${{ github.token }}

- name: npm install
working-directory: newsfeeder-ts
run: npm install

- name: build and push
uses: fermyon/actions/spin/push
working-directory: newsfeeder-ts
with:
registry: ${{ env.REGISTRY }}
registry_username: ${{ github.actor }}
registry_password: ${{ secrets.GITHUB_TOKEN }}
registry_reference: "${{ env.REGISTRY }}/${{ env.REPOSITORY }}/newsfeeder-ts:test1"

0 comments on commit b0cb509

Please sign in to comment.