ci: don't login to docker on forks

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-08-31 09:13:54 +02:00
parent b26202db35
commit 5745ffa0a8
3 changed files with 5 additions and 2 deletions

View File

@ -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 }}

View File

@ -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 }},

View File

@ -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():