From 9d050e9dadd2c68fbecc0fc512cdea1256be420a Mon Sep 17 00:00:00 2001 From: Robert J Spencer Date: Wed, 11 Sep 2024 18:39:28 +0800 Subject: [PATCH] add snponly.efi and build with actions --- .github/workflows/build.yaml | 58 +++++++++++++++++++++++++++++++----- CHANGES.md | 4 +++ get-tftp-files | 1 + 3 files changed, 56 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 3062680..095d438 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -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 \ No newline at end of file diff --git a/CHANGES.md b/CHANGES.md index 37f26ed..3e41729 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -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` diff --git a/get-tftp-files b/get-tftp-files index e31f60e..0efa6be 100755 --- a/get-tftp-files +++ b/get-tftp-files @@ -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