ci: don't login to docker on forks
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
		
							
								
								
									
										4
									
								
								.github/workflows/ci-main.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.github/workflows/ci-main.yml
									
									
									
									
										vendored
									
									
								
							| @ -179,8 +179,6 @@ jobs: | ||||
|     runs-on: ubuntu-latest | ||||
|     steps: | ||||
|       - uses: actions/checkout@v2 | ||||
|       - name: Set up QEMU | ||||
|         uses: docker/setup-qemu-action@v1.2.0 | ||||
|       - name: Set up Docker Buildx | ||||
|         uses: docker/setup-buildx-action@v1 | ||||
|       - name: prepare variables | ||||
| @ -189,6 +187,7 @@ jobs: | ||||
|           python ./scripts/gh_do_set_branch.py | ||||
|       - name: Login to GitHub Container Registry | ||||
|         uses: docker/login-action@v1 | ||||
|         if: ${{ github.event.pull_request.head.repo.full_name == github.repository }} | ||||
|         with: | ||||
|           registry: beryju.org | ||||
|           username: ${{ secrets.HARBOR_USERNAME }} | ||||
| @ -196,6 +195,7 @@ jobs: | ||||
|       - name: Building Docker Image | ||||
|         uses: docker/build-push-action@v2 | ||||
|         with: | ||||
|           push: ${{ github.event.pull_request.head.repo.full_name == github.repository }} | ||||
|           tags: | | ||||
|             beryju.org/authentik/server:gh-${{ steps.ev.outputs.branchName }}, | ||||
|             beryju.org/authentik/server:gh-${{ env.GITHUB_SHA }} | ||||
|  | ||||
							
								
								
									
										2
									
								
								.github/workflows/ci-outpost.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/ci-outpost.yml
									
									
									
									
										vendored
									
									
								
							| @ -47,6 +47,7 @@ jobs: | ||||
|           python ./scripts/gh_do_set_branch.py | ||||
|       - name: Login to GitHub Container Registry | ||||
|         uses: docker/login-action@v1 | ||||
|         if: ${{ github.event.pull_request.head.repo.full_name == github.repository }} | ||||
|         with: | ||||
|           registry: beryju.org | ||||
|           username: ${{ secrets.HARBOR_USERNAME }} | ||||
| @ -54,6 +55,7 @@ jobs: | ||||
|       - name: Building Docker Image | ||||
|         uses: docker/build-push-action@v2 | ||||
|         with: | ||||
|           push: ${{ github.event.pull_request.head.repo.full_name == github.repository }} | ||||
|           tags: | | ||||
|             beryju.org/authentik/outpost-${{ matrix.type }}:gh-${{ steps.ev.outputs.branchName }}, | ||||
|             beryju.org/authentik/outpost-${{ matrix.type }}:gh-${{ steps.ev.outputs.branchName }}-${{ steps.ev.outputs.timestamp }}, | ||||
|  | ||||
| @ -31,6 +31,7 @@ class FlowPlanProcess(PROCESS_CLASS):  # pragma: no cover | ||||
|         self.request = RequestFactory().get("/") | ||||
|  | ||||
|     def run(self): | ||||
|         """Execute 1000 flow plans""" | ||||
|         print(f"Proc {self.index} Running") | ||||
|  | ||||
|         def test_inner(): | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Jens Langhammer
					Jens Langhammer