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

Merge pull request #3 from cloudnautique/main #2

Merge pull request #3 from cloudnautique/main

Merge pull request #3 from cloudnautique/main #2

Workflow file for this run

name: Publish Acorn image
on:
push:
tags:
- "*"
jobs:
publish:
name: Publish
runs-on: buildjet-4vcpu-ubuntu-2204
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 with signature
run: |
TAG=${GITHUB_REF#refs/*/}
USER=${{ github.repository_owner }}
REPO=${{ github.event.repository.name }}
acorn build --platform linux/amd64 --platform linux/arm64 --push -t ghcr.io/${USER}/${REPO}:${TAG} .