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

Cleanup and update (#68) #55

Cleanup and update (#68)

Cleanup and update (#68) #55

Workflow file for this run

name: Publish Acorn service image
on:
push:
tags:
- "**/v[0-9]*"
- "!utils/**/v[0-9]*"
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: Set image and tag
run: ./scripts/setup_tags.sh
- name: Build and Publish with signature
run: |
acorn build --platform linux/amd64 --platform linux/arm64 -t ghcr.io/acorn-io/aws/${IMAGE}:${TAG} ./${IMAGE}
acorn push --sign --key="${{ secrets.SIG_PRIVATE_KEY }}" ghcr.io/acorn-io/aws/${IMAGE}:${TAG}
env:
ACORN_IMAGE_SIGN_PASSWORD: ${{ secrets.SIG_PRIVATE_KEY_PASSWORD }}