ci: copy static files to s3 on master build

Signed-off-by: Jérémie Drouet <jeremie.drouet@gmail.com>
This commit is contained in:
Jérémie Drouet 2020-03-04 13:07:20 +01:00 committed by Stefan Scherer
parent 6d2300a89f
commit 3b635b1996
No known key found for this signature in database
GPG Key ID: 505AF50C5D02E697
1 changed files with 21 additions and 0 deletions

21
.github/workflows/build-master.yml vendored Normal file
View File

@ -0,0 +1,21 @@
on:
push:
branches:
- master
jobs:
build-static-page:
name: build
runs-on: ubuntu-latest
env:
DOCKER_BUILDKIT: '1'
steps:
- name: print docker info
run: docker version && docker info
- uses: actions/checkout@v2
- name: build image
run: docker build --build-arg=ENABLE_ARCHIVES=true --target=current -t documentation:latest .
- name: copy static files locally
run: docker run -v ${PWD}:/output documentation:latest cp -r /usr/share/nginx/html /output/_site
- name: upload files to S3 bucket
run: aws s3 sync _site s3://docs.docker.com-test-us-east-1/ --delete