Skip to content

Commit c073178

Browse files
nnethercoteLegNeato
authored andcommitted
Restrict CI on forks, more.
- Don't do container image CI on forks. (We shouldn't be pushing container images to ghcr.io from forks!) - Remove the `if` condition in `deploy_guide.yml`. It has no effct because there is an `on: push: branches: - main` condition higher up doing the same thing (and in the more typical way). (These changes were supposed to be in #268, but I failed to commit the changes before pushing, sigh.)
1 parent 8b2ad3f commit c073178

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/container_images.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
- ".github/workflows/container_images.yml"
88
- "container/**"
99
push:
10+
branches:
11+
- main
1012
paths:
1113
- ".github/workflows/container_images.yml"
1214
- "container/**"
@@ -162,4 +164,4 @@ jobs:
162164
$(printf '${{ env.REGISTRY }}/${{ matrix.variance.image }}@sha256:%s ' *)
163165
- name: Inspect image
164166
run: |
165-
docker buildx imagetools inspect ${{ env.REGISTRY }}/${{ matrix.variance.image }}:${{ steps.meta.outputs.version }}
167+
docker buildx imagetools inspect ${{ env.REGISTRY }}/${{ matrix.variance.image }}:${{ steps.meta.outputs.version }}

.github/workflows/deploy_guide.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ concurrency:
1212
jobs:
1313
deploy:
1414
# Only run on the main repository, not on forks
15-
if: github.repository == 'rust-gpu/Rust-CUDA'
1615
runs-on: ubuntu-latest
1716
environment:
1817
name: github-pages

0 commit comments

Comments
 (0)