Skip to content

Commit 240fc37

Browse files
committed
Use a different runner for building images
1 parent 563c328 commit 240fc37

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

.github/workflows/docker-images.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ env:
1212

1313
jobs:
1414
build:
15-
runs-on: ubuntu-latest
15+
runs-on: large-runner
1616

1717
permissions:
1818
contents: read
@@ -95,6 +95,16 @@ jobs:
9595
file: docker/api/Dockerfile
9696
platforms: linux/amd64,linux/arm64
9797

98+
- name: Sign the published LLMStack API Docker image
99+
if: ${{ github.event_name != 'pull_request' }}
100+
env:
101+
# https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable
102+
TAGS: ${{ steps.meta-api.outputs.tags }}
103+
DIGEST: ${{ steps.build-and-push-api.outputs.digest }}
104+
# This step uses the identity token to provision an ephemeral certificate
105+
# against the sigstore community Fulcio instance.
106+
run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST}
107+
98108
- name: Build and push LLMStack app Docker image
99109
id: build-and-push-app
100110
uses: docker/build-push-action@v4
@@ -111,16 +121,6 @@ jobs:
111121
REGISTRY=${{ env.REGISTRY }}/${{ env.ORG }}/
112122
TAG=main
113123
114-
- name: Sign the published LLMStack API Docker image
115-
if: ${{ github.event_name != 'pull_request' }}
116-
env:
117-
# https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable
118-
TAGS: ${{ steps.meta-api.outputs.tags }}
119-
DIGEST: ${{ steps.build-and-push-api.outputs.digest }}
120-
# This step uses the identity token to provision an ephemeral certificate
121-
# against the sigstore community Fulcio instance.
122-
run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST}
123-
124124
- name: Sign the published LLMStack app Docker image
125125
if: ${{ github.event_name != 'pull_request' }}
126126
env:

0 commit comments

Comments
 (0)