VIP Go CI Build Scripts
This directory contains various scripts to handle a build process for the VIP Go hosting platform on WordPress.com VIP.
Credits
Inspiration (and some code) taken from Human Made's VIP Go Builder, thank you!
A build script for VIP Go
Home Page: https://wpvip.com/documentation/automated-build-and-deploy-on-vip-go/
This directory contains various scripts to handle a build process for the VIP Go hosting platform on WordPress.com VIP.
Inspiration (and some code) taken from Human Made's VIP Go Builder, thank you!
It's not possible to specify a commit other than the latest for a git submodule, it always gets updated to the latest available commit when deployed
fixed by #18
Files in the built branch should only contain the files in the deploy branch + anything created by the CI process.
deploy.sh
or you can setup ENV variables locally and call deploy.sh
directly.Something to consider for the future:
prepare
would detect the environment, assemble the necessary data, and then pass them to the deploy
.deploy
would be environment-agnostic and accept args for src / dest / branches / etc.The biggest benefit of this would be to simplify running a deploy locally (e.g. emergency situations where the CI service is down or too slow)
In the deploy script, there is:
Lines 97 to 99 in 77d4708
There's a timestamp file that could be checked to see if it exists, but I'm not sure that on a fresh environment spun up by the CI service whether it is worth checking this exists (and what would the timestamp value be compared to?) vs just running the update.
sudo apt-get update
.Adding this issue (even if it's immediately closed / the Fixme note removed) for future reference.
Do you want to change it to https://github.com/Automattic/vip-go-skeleton/blob/add/ci-deploy/README-BUILD-SCRIPT.md, or will you expect it to auto-update with merging?
The "legacy" method of adding repos is now deprecated. I think this work depends on setting it up for the whole Automattic repo, so this needs coordinating with other teams.
https://blog.travis-ci.com/2018-05-02-open-source-projects-on-travis-ci-com-with-github-apps
The problem:
.gitignore files that a client developer is excluding from the repo often overlap with -built files.
For example, while ignoring a node_modules directory is necessary for both development and deployment, the client would want the build directory included in the actual -built branch for deployment.
The solution:
Per internal discussion, there are multiple approaches... which one is less confusing for clients of all skill levels and less likely to cause issues?
Just saying... ❤️
If we can make our deploy.sh
script work with GitHub Actions and simplify our setup for working on Circle CI or Travis, that would be great.
props @mjangda
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.