mirror of
https://github.com/docker/docs.git
synced 2026-03-27 14:28:47 +07:00
Merge pull request #10413 from jdrouet/disable-deploy-fork
fork shouldn't trigger deploy
This commit is contained in:
4
.github/workflows/build-pr.yml
vendored
4
.github/workflows/build-pr.yml
vendored
@@ -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 }}
|
||||
|
||||
2
.github/workflows/clean-pr.yml
vendored
2
.github/workflows/clean-pr.yml
vendored
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user