Skip to content

Commit

Permalink
add snponly.efi and build with actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Rjvs committed Sep 11, 2024
1 parent f41df2c commit 9d050e9
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 7 deletions.
58 changes: 51 additions & 7 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,57 @@
---
name: build
on:
push:
branches:
- main
pull_request:
branches:
- main
release:
types:
- published

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

jobs:
multiarch:
uses: poseidon/fleetlock/.github/workflows/multiarch.yaml@main
secrets:
QUAY_TOKEN: ${{ secrets.QUAY_TOKEN }}
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
attestations: write
id-token: write
steps:
- name: Check out the repository
uses: actions/checkout@v4
- name: Get iPXE files
shell: bash
run: |
chmod +x ./get-tftp-files
./get-tftp-files
- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Build and push Docker image
id: push
uses: docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
outputs: type=image,name=target,annotation-index.org.opencontainers.image.description=SL dnsmasq ubuntu
- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
with:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

Notable changes image releases. The dnsmasq project [upstream](http://www.thekelleys.org.uk/dnsmasq/doc.html) has its own [changelog](http://www.thekelleys.org.uk/dnsmasq/CHANGELOG).

## SL

* Add `snponly.efi` to list of files grabbed from iPXE.org

## v0.5.0

* Add multiarch manifest list images for `amd64` and `arm64`
Expand Down
1 change: 1 addition & 0 deletions get-tftp-files
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ fi
curl -s -o $DEST/undionly.kpxe http://boot.ipxe.org/undionly.kpxe
cp $DEST/undionly.kpxe $DEST/undionly.kpxe.0
curl -s -o $DEST/ipxe.efi http://boot.ipxe.org/ipxe.efi
curl -s -o $DEST/snponly.efi http://boot.ipxe.org/snponly.efi

0 comments on commit 9d050e9

Please sign in to comment.