Skip to content

Commit

Permalink
Итоговые конфиги nginx сохраняются как артифакт
Browse files Browse the repository at this point in the history
  • Loading branch information
kemko committed Aug 4, 2019
1 parent 4c44578 commit b545d55
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ before_script:
- ansible --version
- molecule --version

molecule-role-common:
molecule:
stage: tests
tags:
- docker
Expand All @@ -21,3 +21,7 @@ molecule-role-common:
PY_COLORS: 1
script:
- molecule test
artifacts:
paths:
- nginx_configs
expire_in: 1 month
2 changes: 2 additions & 0 deletions molecule/default/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ RUN if [ $(command -v apt-get) ]; then apt-get update && apt-get install -y pyth
elif [ $(command -v zypper) ]; then zypper refresh && zypper install -y python sudo bash python-xml && zypper clean -a; \
elif [ $(command -v apk) ]; then apk update && apk add --no-cache python sudo bash ca-certificates; \
elif [ $(command -v xbps-install) ]; then xbps-install -Syu && xbps-install -y python sudo bash ca-certificates && xbps-remove -O; fi

VOLUME nginx_configs /etc/nginx

0 comments on commit b545d55

Please sign in to comment.