Skip to content

Commit

Permalink
do not run docker build workflow on forks
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Mar 10, 2021
1 parent d140311 commit 84b3cb1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build-docker.yml
Expand Up @@ -3,7 +3,6 @@ name: 🐳 Build Docker images for current branches
# on commits to this file, schedule and dispatch runs, the workflow will build the 3 different Docker images (master, PR, LTR)
# on tags, it will build only the image of the given tag
# this is made by using a matrix defined in a dedicated job

on:
push:
tags:
Expand All @@ -20,6 +19,7 @@ on:

jobs:
define-strategy:
if: github.repository_owner == 'qgis'
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.matrix.outputs.matrix }}
Expand All @@ -33,6 +33,7 @@ jobs:
fi
build-docker:
if: github.repository_owner == 'qgis'
runs-on: ubuntu-latest
needs: define-strategy

Expand Down

0 comments on commit 84b3cb1

Please sign in to comment.