ci: fork shouldn't trigger deploy

Signed-off-by: Jérémie Drouet <jeremie.drouet@gmail.com>
This commit is contained in:
Jérémie Drouet 2020-03-06 10:32:11 +01:00
parent 2baaa9e2c3
commit f2e1c94e9e
2 changed files with 3 additions and 3 deletions

View File

@ -15,10 +15,10 @@ jobs:
- name: build image
run: docker build --build-arg=ENABLE_ARCHIVES=false --target=current -t documentation:latest .
- name: copy static files
if: github.repository == 'docker/docker.github.io'
if: github.event.pull_request.head.repo.fork == false
run: docker run -v ${PWD}:/output documentation:latest cp -r /usr/share/nginx/html /output/_site
- uses: ./.github/actions/netlify-deploy
if: github.repository == 'docker/docker.github.io'
if: github.event.pull_request.head.repo.fork == false
with:
directory: _site
netlify_token: ${{ secrets.NETLIFY_AUTH_TOKEN }}

View File

@ -9,7 +9,7 @@ jobs:
remove-site-from-netlify:
name: build
runs-on: ubuntu-latest
if: github.repository == 'docker/docker.github.io'
if: github.event.pull_request.head.repo.fork == false
steps:
- uses: actions/checkout@v2
with: