From 7d8d724d7ea01fb8ce96061d354a622e3c617705 Mon Sep 17 00:00:00 2001 From: slayer321 Date: Wed, 8 Nov 2023 11:01:02 +0530 Subject: [PATCH] workflow with new redis image --- .github/workflows/publish.yaml | 29 +++++++++++++++++++++++++++++ Acornfile | 2 +- 2 files changed, 30 insertions(+), 1 deletion(-) 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..fc6b2ef --- /dev/null +++ b/.github/workflows/publish.yaml @@ -0,0 +1,29 @@ +name: Publish Acorn image +on: + workflow_dispatch: + push: + tags: + - "v[0-9]*" + +jobs: + publish: + name: Publish + runs-on: ubuntu-latest + 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/mastodon-acorn:${TAG} . \ No newline at end of file diff --git a/Acornfile b/Acornfile index 9df1f2e..97a2671 100644 --- a/Acornfile +++ b/Acornfile @@ -8,7 +8,7 @@ services: postgres: { image: "ghcr.io/acorn-io/postgres:v#.#-#" } -services: redis: image: "ghcr.io/slayer321/redis:v0.0.1" +services: redis: image: "ghcr.io/acorn-io/redis:v#.#.#-#" args: {