This repository has been archived by the owner on Mar 16, 2024. It is now read-only.
INitial commit #1
Workflow file for this run
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
name: Publish Acorn image | |
on: | |
push: | |
tags: | |
- "v[0-9]*" | |
jobs: | |
publish: | |
name: Publish | |
runs-on: ubuntu-latest | |
permissions: | |
packages: write | |
contents: read | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: acorn-io/actions-setup@v2 | |
with: | |
acorn-version: "main" | |
- name: Login to GHCR | |
uses: acorn-io/actions-login@v1 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and Publish Acorn image | |
run: | | |
TAG=${GITHUB_REF#refs/*/} | |
USER=${{ github.repository_owner }} | |
REPO=${{ github.event.repository.name }} | |
acorn build --platform linux/amd64 --push -t ghcr.io/$USER/$REPO:$TAG . | |
acorn build --platform linux/amd64 --push -t ghcr.io/$USER/$REPO/examples:$TAG examples |