Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Commit

Permalink
add github action
Browse files Browse the repository at this point in the history
Signed-off-by: Bill Maxwell <[email protected]>
  • Loading branch information
cloudnautique committed Jan 18, 2024
1 parent eedb490 commit e16e815
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
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@v2
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

0 comments on commit e16e815

Please sign in to comment.