GithubHelp home page GithubHelp logo

vip-go-build's Introduction

vip-go-build's People

Contributors

dchymko avatar gudmdharalds avatar mjangda avatar rebeccahum avatar rogertheriault avatar simonwheatley avatar sjinks avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vip-go-build's Issues

Git submodules always get updated

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 deleted from the deploy branch don't get removed from the built branch

Expected

Files in the built branch should only contain the files in the deploy branch + anything created by the CI process.

Steps to reproduce

  1. You will need to use a test site that has CIrcleCI configured to call deploy.sh or you can setup ENV variables locally and call deploy.sh directly.
  2. Remove a folder/file from the deploy branch and commit/push. Either wait for CircleCI to run/push or run deploy.sh
  3. Observe the file/folder is still present in the built repository.

Split script into `prepare` and `deploy`

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)

Fixme note for apt-get update

In the deploy script, there is:

vip-go-build/deploy.sh

Lines 97 to 99 in 77d4708

# @FIXME Probably there's a way we could check if APT is up to date or not
# so we don't have to run update every time
sudo apt-get update

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.

Adding this issue (even if it's immediately closed / the Fixme note removed) for future reference.

Add "deployignore" type capability to build script

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?

  • stripping a section from .gitignore
  • using a .deployignore to specify a different ignore list for deploys
  • using a .deploykeep to flag a directory structure that gets deployed
  • something else?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.