Skip to content

Build

Build #145

Workflow file for this run

name: Build
on:
push:
pull_request:
schedule:
- cron: '0 0 1 * *' #Monthly
workflow_dispatch:
jobs:
trigger:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
name: Checkout Repository
# Seems to break the build. Figure this out later.
- uses: docker/setup-qemu-action@v3
with:
platforms: arm64,amd64
- uses: docker/setup-buildx-action@v3
name: Setup Docker BuildKit (buildx)
- uses: docker/login-action@v3
name: Login to Github Container Repo
if: github.event_name != 'pull_request'
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/metadata-action@v5
name: Generate Docker Metadata
id: meta
with:
images: ghcr.io/EspressoSystems/nix
- uses: docker/build-push-action@v6
name: Build and Push Docker
with:
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}