Skip to content

Commit

Permalink
feat: add nix build gha
Browse files Browse the repository at this point in the history
  • Loading branch information
mchristopher committed Dec 4, 2024
1 parent 51dadb2 commit 0f7f56e
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Build & Publish

on:
push:
branches: [main]

env:
IMAGE_NAME: ghcr.io/${{ github.repository }}

jobs:
build:
runs-on: ubuntu-latest

permissions:
contents: read
packages: write

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push Docker images
uses: iloveitaly/github-action-nixpacks@main
with:
push: true
cache: true
platforms: "linux/amd64,linux/arm64"

0 comments on commit 0f7f56e

Please sign in to comment.