mirror of https://github.com/docker/docs.git
ci: fork shouldn't trigger deploy
Signed-off-by: Jérémie Drouet <jeremie.drouet@gmail.com>
This commit is contained in:
parent
2baaa9e2c3
commit
f2e1c94e9e
|
|
@ -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 }}
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue