Advertisement
Guest User

.gitlab-ci.yml

a guest
Jun 22nd, 2022
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. # To contribute improvements to CI/CD templates, please follow the Development guide at:
  2. # https://docs.gitlab.com/ee/development/cicd/templates.html
  3. # This specific template is located at:
  4. # https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Pages/HTML.gitlab-ci.yml
  5.  
  6. # Full project: https://gitlab.com/pages/plain-html
  7. # Some information taken from https://docs.gitlab.com/ee/user/project/pages/introduction.html#serving-compressed-assets
  8.  
  9. image: 'alpine:latest' # The version of the Alpine Linux distribution it will use.
  10. pages: # Defines what name it should be called.
  11. stage: deploy # Tells it that it is meant to be deployed.
  12. script: # What it runs.
  13. - echo 'Compressing certain file types, which are located in the public folder...' # Prints out that text.
  14. - find public -type f -regex '.*\.\(htm\|html\|txt\|text\|js\|css\|svg\)$' -print0 -exec gzip -f -kv -6 {} \; # Finds in the public folder those types of files, then compresses them.
  15. - echo 'Finished compressing file(s).' # Prints out that text.
  16. artifacts:
  17. paths: # Path of the folder(s).
  18. - public # What folder to use.
  19. only: # Only uses the specified branch.
  20. - trunk # What branch to use.
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement