Skip to content

Commit

Permalink
add github action to publish packages
Browse files Browse the repository at this point in the history
  • Loading branch information
slayer321 committed Oct 17, 2023
1 parent 76614af commit 66eac85
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
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/laravel-acorn:${TAG} .
4 changes: 4 additions & 0 deletions Acornfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
name: "Laravel Sample Acorn"
description: "Acorn running a sample Laravel app"
readme: "./README.md"

services: db: image: "ghcr.io/acorn-io/mariadb:v1.0.0"

containers: {
Expand Down

0 comments on commit 66eac85

Please sign in to comment.