Skip to content

Commit

Permalink
Merge pull request #2 from infracloudio/workflows
Browse files Browse the repository at this point in the history
workflow with new redis image
  • Loading branch information
samkulkarni20 authored Nov 8, 2023
2 parents 9330d61 + 7d8d724 commit 265214d
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -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} .
2 changes: 1 addition & 1 deletion Acornfile
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 265214d

Please sign in to comment.