mirror of
https://github.com/hay-kot/homebox.git
synced 2024-12-23 15:26:31 +00:00
47 lines
1.1 KiB
YAML
47 lines
1.1 KiB
YAML
name: Build Nightly
|
|
|
|
on:
|
|
workflow_run:
|
|
workflows:
|
|
- "Go Build/Test"
|
|
- "Frontend / Integration"
|
|
types:
|
|
- completed
|
|
push:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
publish:
|
|
runs-on: ubuntu-latest
|
|
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: 1.19
|
|
|
|
- name: Set up QEMU
|
|
id: qemu
|
|
uses: docker/setup-qemu-action@v1
|
|
with:
|
|
image: tonistiigi/binfmt:latest
|
|
platforms: all
|
|
|
|
- name: install buildx
|
|
id: buildx
|
|
uses: docker/setup-buildx-action@v1
|
|
with:
|
|
install: true
|
|
|
|
- name: login to container registry
|
|
run: docker login ghcr.io --username hay-kot --password $CR_PAT
|
|
env:
|
|
CR_PAT: ${{ secrets.CR_PAT }}
|
|
|
|
- name: build the image
|
|
run: |
|
|
docker build --push \
|
|
--tag ghcr.io/hay-kot/homebox:nightly \
|
|
--build-arg COMMIT=$(git rev-parse HEAD) \
|
|
--platform linux/amd64,linux/arm64,linux/arm/v7 .
|