blob: 8eecd51fe27e4ad4bbaa06875e195816fcfa8e16 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
id: gitlab/pages
title: Get started with GitLab Pages
description: "Use GitLab Pages to deploy your static website. Follow these steps to create the configuration file, .gitlab-ci.yml, and start a pipeline to deploy the site."
steps:
- inputs:
- label: Select your build image
description: A Docker image, used to create an instance where your job runs.
placeholder: node:lts
widget: text
target: $BUILD_IMAGE
required: true
pattern: "(?:[a-z]+/)?([a-z]+)(?::[0-9]+)?"
invalid-feedback: Please enter a valid docker image
- widget: checklist
items:
- text: The application files are in the `public` folder
help: GitLab Pages publishes files in the public folder only. If needed, change your jobs to send output to this folder.
template:
# The Docker image that will be used to build your app
image: $BUILD_IMAGE
- inputs:
- label: Installation Steps
description: "Enter steps to set up a local build environment, like installing dependencies."
placeholder: npm ci
widget: list
target: $INSTALLATION_STEPS
template:
# Functions that should be executed before the build script is run
before_script: $INSTALLATION_STEPS
- inputs:
- label: Build Steps
description: "Enter steps to build a production version of your application."
widget: list
target: $BUILD_STEPS
template:
pages:
script: $BUILD_STEPS
artifacts:
paths:
# The folder that contains the files to be exposed at the Page URL
- public
rules:
# This ensures that only pushes to the default branch will trigger
# a pages deploy
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
|