Skip to content

Sculpin is a static site generator in PHP. This docker image can be used to deploy to gitlab pages.

Notifications You must be signed in to change notification settings

TechNikh/gitlab-ci-sculpin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

.gitlab-ci.yml

# Select image from https://hub.docker.com
image: technikh/gitlab-ci-sculpin:php7.4-node17

# These folders are cached between builds
cache:
  paths:
    - vendor/
    - node_modules/

before_script:
  - yarn --version
  - composer -V
  - composer install
  - yarn install

pages:
  script:
    - composer publish
    - mv output_prod public
  artifacts:
    paths:
      - public
  rules:
    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH

composer.json

    "scripts": {
        "publish": [
            "yarn encore dev || ( echo \"Could not generate Webpack assets\" && exit )",
            "sculpin generate --env=prod || ( echo \"Could not generate the site\" && exit )"
        ]
    }

About

Sculpin is a static site generator in PHP. This docker image can be used to deploy to gitlab pages.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published