Skip to content

Commit

Permalink
Support PRs coming from forks (#580)
Browse files Browse the repository at this point in the history
  • Loading branch information
tcarmet authored Apr 15, 2024
1 parent d878bd0 commit 42540d9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ jobs:
uses: scality/workflows/.github/workflows/docker-build.yaml@v2
with:
name: runner-manager
namespace: scality
namespace: ${{ github.repository_owner }}
tag: ${{ github.ref_name == 'main' && 'latest' || github.sha }}
10 changes: 6 additions & 4 deletions .github/workflows/test-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,19 @@ name: test-deployment
on: pull_request

permissions:
contents: read
contents: write
packages: write

jobs:
docker-build:
permissions:
contents: read
contents: write
packages: write
uses: scality/workflows/.github/workflows/docker-build.yaml@v2
with:
name: runner-manager
namespace: scality
namespace: ${{ github.repository_owner }}

test-deployment:
needs: docker-build
runs-on: ubuntu-latest
Expand All @@ -23,7 +25,7 @@ jobs:
- uses: helm/kind-action@v1
- name: Edit the runner-manager image
working-directory: manifests
run: kustomize edit set image ghcr.io/scality/runner-manager:${{ github.sha }}
run: kustomize edit set image ghcr.io/${{ github.repository_owner }}/runner-manager:${{ github.sha }}
- name: Deploy runner-manager
run: kubectl apply -k manifests
- name: Check if deployment is ready
Expand Down

0 comments on commit 42540d9

Please sign in to comment.