Update build.yml (#16)

This commit is contained in:
Jorge O. Castro
2022-12-25 09:30:14 -05:00
committed by GitHub
parent 9b693a0e5b
commit ec25bb8fb8
2 changed files with 23 additions and 1 deletions

View File

@@ -16,6 +16,10 @@ jobs:
push-ghcr:
name: Build and push image
runs-on: ubuntu-22.04
permissions:
contents: read
packages: write
id-token: write
strategy:
fail-fast: false
matrix:
@@ -90,7 +94,21 @@ jobs:
password: ${{ env.REGISTRY_PASSWORD }}
extra-args: |
--disable-content-trust
# Sign container
- uses: sigstore/cosign-installer@main
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Sign container image
run: |
cosign sign ${{ steps.registry_case.outputs.lowercase }}/${{ env.IMAGE_NAME }}@${TAGS}
env:
TAGS: ${{ steps.push.outputs.digest }}
COSIGN_PRIVATE_KEY: ${{secrets.SIGNING_SECRET}}
COSIGN_EXPERIMENTAL: true
- name: Echo outputs
run: |
echo "${{ toJSON(steps.push.outputs) }}"

View File

@@ -33,4 +33,8 @@ The `latest` tag will automatically point to the latest build.
- Core GNOME Applications installed from Flathub
- GNOME Calculator, Calendar, Characters, Connections, Contacts, Evince, Firmware, Logs, Maps, NautilusPreviewer, TextEditor, Weather, baobab, clocks, eog, and font-viewer
## Verification
These images are signed with sisgstore's [cosign](https://docs.sigstore.dev/cosign/overview/). You can verify the signature by downloading the `cosign.pub` key from this repo and running the following command:
cosign verify --key cosign.pub ghcr.io/ublue-os/base