Disable netlify-deploy for now

Signed-off-by: Stefan Scherer <stefan.scherer@docker.com>
This commit is contained in:
Stefan Scherer 2020-03-20 14:32:07 +01:00
parent 02d087c63a
commit ef6a67aad9
No known key found for this signature in database
GPG Key ID: 505AF50C5D02E697
1 changed files with 11 additions and 10 deletions

View File

@ -14,13 +14,14 @@ jobs:
- uses: actions/checkout@v2
- name: build image
run: docker build --build-arg=ENABLE_ARCHIVES=false --target=current -t documentation:latest .
- name: copy static files
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.event.pull_request.head.repo.fork == false
with:
directory: _site
netlify_token: ${{ secrets.NETLIFY_AUTH_TOKEN }}
netlify_account_slug: ${{ secrets.NETLIFY_ACCOUNT_SLUG }}
site_name: "${{ github.repository }}/${{ github.head_ref }}"
# Disabled netlify-deploy due to flakey 502 http errors
# - name: copy static files
# 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.event.pull_request.head.repo.fork == false
# with:
# directory: _site
# netlify_token: ${{ secrets.NETLIFY_AUTH_TOKEN }}
# netlify_account_slug: ${{ secrets.NETLIFY_ACCOUNT_SLUG }}
# site_name: "${{ github.repository }}/${{ github.head_ref }}"