Skip to content

oci push

oci push #3

Workflow file for this run

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
defaults:
run:
working-directory: newsfeeder-ts
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 19
- name: setup spin
uses: fermyon/actions/spin/setup@v1
with:
version: v2.0.0
plugins: js2wasm
github_token: ${{ github.token }}
- name: npm install
run: npm install
- 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 }}/${{ env.REPOSITORY }}/newsfeeder-ts:test1"