Skip to content

Instantly share code, notes, and snippets.

@Quetzacoalt91
Created September 12, 2018 17:25
Show Gist options
  • Save Quetzacoalt91/7902dd0c63e3b52857f08296693dab1f to your computer and use it in GitHub Desktop.
Save Quetzacoalt91/7902dd0c63e3b52857f08296693dab1f to your computer and use it in GitHub Desktop.
Docker for generating a zip from the latest commit on develop branch
## Nightly build generation of PrestaShop releases.
## Build with `docker build -t nightly-gen .`
## Then, run it with `docker run -ti --rm -v $PWD/builds:/var/www/html/tools/build/releases -e PS_VERSION=1.7.5.0 nightly-gen`
FROM prestashop/prestashop-git:7.2
ENV PS_BRANCH develop
ENV PS_VERSION 1.7.X.X
RUN git fetch origin && git checkout origin/$PS_BRANCH
VOLUME /var/www/html/tools/build/releases
ENTRYPOINT php /var/www/html/tools/build/CreateRelease.php --version="$PS_VERSION"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment