Commit 7fceecaa authored by Bryan Jadot's avatar Bryan Jadot
Browse files

Fix gitlab ci

parent 8c266c0a
Pipeline #133349452 passed with stages
in 3 minutes and 25 seconds
......@@ -9,13 +9,12 @@ build_client:
script:
- apt update
- apt-get install -y gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget
- cd client/
- npm install
- npm test
- npm run build
artifacts:
paths:
- client/build/
- build/
expire_in: 1 week
deploy_client:
......@@ -25,6 +24,6 @@ deploy_client:
script:
- pip install awscli
- apk --no-cache add curl
- aws s3 sync client/build/. s3://ttt.bryanjadot.com --delete --cache-control public,max-age=86400
- aws s3 cp client/build/index.html s3://ttt.bryanjadot.com/index.html --cache-control public,s-maxage=86400
- aws s3 sync build/. s3://ttt.bryanjadot.com --delete --cache-control public,max-age=86400
- aws s3 cp build/index.html s3://ttt.bryanjadot.com/index.html --cache-control public,s-maxage=86400
- curl -X DELETE "https://api.cloudflare.com/client/v4/zones/7728e457aaa684ac0deabc7c6ac296a0/purge_cache" -H "Content-Type:application/json" -H "Authorization:Bearer $CLOUDFLARE_API_TOKEN" -H "X-Auth-Email:bryan.jadot@gmail.com" --data '{"https://ttt.bryanjadot.com/"]}'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment