mirror of
https://github.com/mattermost/mattermost.git
synced 2026-08-27 05:37:15 -05:00
Use chainctl for fips build images (#33674)
We need to identify ourselves to Chainguard for pulling images during build steps. Note that the identity value is not a secret, at least in so far as we're already using it this way over at https://github.com/mattermost/mattermost/pull/33549/files.
This commit is contained in:
@@ -9,6 +9,9 @@ on:
|
||||
- server/build/Dockerfile.buildenv-fips
|
||||
- .github/workflows/build-server-image.yml
|
||||
|
||||
env:
|
||||
CHAINCTL_IDENTITY: ee399b4c72dd4e58e3d617f78fc47b74733c9557/922f2d48307d6f5f
|
||||
|
||||
jobs:
|
||||
build-image:
|
||||
runs-on: ubuntu-22.04
|
||||
@@ -39,6 +42,9 @@ jobs:
|
||||
build-image-fips:
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- uses: chainguard-dev/setup-chainctl@f4ed65b781b048c44d4f033ae854c025c5531c19 # v0.3.2
|
||||
with:
|
||||
identity: ${{ env.CHAINCTL_IDENTITY }}
|
||||
- name: buildenv/checkout-repo
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
|
||||
|
||||
@@ -11,6 +11,9 @@ on:
|
||||
description: "Docker image tag (e.g. v1.2.3 or latest)"
|
||||
required: true
|
||||
|
||||
env:
|
||||
CHAINCTL_IDENTITY: ee399b4c72dd4e58e3d617f78fc47b74733c9557/922f2d48307d6f5f
|
||||
|
||||
jobs:
|
||||
build-and-push:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -61,6 +64,9 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: chainguard-dev/setup-chainctl@f4ed65b781b048c44d4f033ae854c025c5531c19 # v0.3.2
|
||||
with:
|
||||
identity: ${{ env.CHAINCTL_IDENTITY }}
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #4.2.2
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user