Skip to content

Commit

Permalink
feat(ci): Verify remaining toolboxes (ublue-os#779)
Browse files Browse the repository at this point in the history
  • Loading branch information
EyeCantCU authored and wizzywizard65 committed Jan 3, 2024
1 parent 64f4fee commit 0b437a9
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 12 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/build-fedora-toolbox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
schedule:
- cron: '20 22 * * *' # 10:20pm everyday
pull_request:
merge_group:
merge_group:
workflow_dispatch:
env:
IMAGE_NAME: fedora-toolbox
Expand All @@ -24,11 +24,16 @@ jobs:
id-token: write
strategy:
fail-fast: false
steps:
steps:
# Checkout push-to-registry action GitHub repository
- name: Checkout Push to Registry action
uses: actions/checkout@v4


- name: Verify Fedora distrobox
uses: EyeCantCU/cosign-action/verify@v0.2.1
with:
containers: fedora-distrobox:latest

# Build metadata
- name: Image Metadata
uses: docker/metadata-action@v5
Expand All @@ -50,7 +55,7 @@ jobs:
tags: ${{ env.IMAGE_TAGS }}
labels: ${{ steps.meta.outputs.labels }}
oci: false

# Workaround bug where capital letters in your GitHub username make it impossible to push to GHCR.
# https://github.com/macbre/push-to-ghcr/issues/12
- name: Lowercase Registry
Expand All @@ -75,15 +80,15 @@ jobs:
password: ${{ env.REGISTRY_PASSWORD }}
extra-args: |
--disable-content-trust
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
if: github.event_name != 'pull_request'
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

# Sign container
- uses: sigstore/cosign-installer@v3.3.0
if: github.event_name != 'pull_request'
Expand Down
19 changes: 13 additions & 6 deletions .github/workflows/build-ubuntu-toolbox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
schedule:
- cron: '20 22 * * *' # 10:20pm everyday
pull_request:
merge_group:
merge_group:
workflow_dispatch:
env:
IMAGE_NAME: ubuntu-toolbox
Expand All @@ -24,11 +24,18 @@ jobs:
id-token: write
strategy:
fail-fast: false
steps:
steps:
# Checkout push-to-registry action GitHub repository
- name: Checkout Push to Registry action
uses: actions/checkout@v4


- name: Verify Ubuntu toolbox
uses: EyeCantCU/cosign-action/verify@v0.2.1
with:
containers: ubuntu-toolbox:22.04
pubkey: https://raw.githubusercontent.com/toolbx-images/images/main/quay.io-toolbx-images.pub
registry: quay.io/toolbx-images

# Build metadata
- name: Image Metadata
uses: docker/metadata-action@v5
Expand All @@ -50,7 +57,7 @@ jobs:
tags: ${{ env.IMAGE_TAGS }}
labels: ${{ steps.meta.outputs.labels }}
oci: false

# Workaround bug where capital letters in your GitHub username make it impossible to push to GHCR.
# https://github.com/macbre/push-to-ghcr/issues/12
- name: Lowercase Registry
Expand All @@ -75,15 +82,15 @@ jobs:
password: ${{ env.REGISTRY_PASSWORD }}
extra-args: |
--disable-content-trust
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
if: github.event_name != 'pull_request'
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

# Sign container
- uses: sigstore/cosign-installer@v3.3.0
if: github.event_name != 'pull_request'
Expand Down

0 comments on commit 0b437a9

Please sign in to comment.