From bf3d3a1e6889b15535b60e9bbf769c3e944f04a2 Mon Sep 17 00:00:00 2001 From: Sameer Kulkarni Date: Tue, 17 Oct 2023 09:58:53 +0530 Subject: [PATCH] added a gh action to publish acorn --- .github/workflows/publish.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/publish.yaml diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 0000000..b8d2963 --- /dev/null +++ b/.github/workflows/publish.yaml @@ -0,0 +1,28 @@ +name: Publish Acorn image +on: + push: + tags: + - "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: Build and Publish with signature + run: | + TAG=${GITHUB_REF#refs/*/} + acorn build --platform linux/amd64 --platform linux/arm64 --push -t ghcr.io/infracloudio/dotnetcore-acorn:${TAG} .