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
|
- name: build image
|
||||||
run: docker build --build-arg=ENABLE_ARCHIVES=false --target=current -t documentation:latest .
|
run: docker build --build-arg=ENABLE_ARCHIVES=false --target=current -t documentation:latest .
|
||||||
- name: copy static files
|
- 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
|
run: docker run -v ${PWD}:/output documentation:latest cp -r /usr/share/nginx/html /output/_site
|
||||||
- uses: ./.github/actions/netlify-deploy
|
- uses: ./.github/actions/netlify-deploy
|
||||||
if: github.repository == 'docker/docker.github.io'
|
if: github.event.pull_request.head.repo.fork == false
|
||||||
with:
|
with:
|
||||||
directory: _site
|
directory: _site
|
||||||
netlify_token: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
netlify_token: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ jobs:
|
||||||
remove-site-from-netlify:
|
remove-site-from-netlify:
|
||||||
name: build
|
name: build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.repository == 'docker/docker.github.io'
|
if: github.event.pull_request.head.repo.fork == false
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue