Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guides Gitlab update .gitlab-ci.yml example #5294

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 20 additions & 20 deletions src/content/docs/en/guides/deploy/gitlab.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -34,26 +34,26 @@ Check out [the official GitLab Pages Astro example project](https://gitlab.com/p

4. Create a file called `.gitlab-ci.yml` in the root of your project with the content below. This will build and deploy your site whenever you make changes to your content:

```yaml
# The Docker image that will be used to build your app
image: node:lts

```yaml
# The Docker image that will be used to build your app
image: node:lts

pages:
before_script:
- npm ci

pages:
script:
# Specify the steps involved to build your app here
- npm run build

artifacts:
paths:
# The folder that contains the built files to be published.
# This must be called "public".
- public

only:
# Trigger a new build and deploy only when there is a push to the
# branch(es) below
- main
```
script:
# Specify the steps involved to build your app here
- npm run build

artifacts:
paths:
# The folder that contains the built files to be published.
# This must be called "public".
- public

only:
# Trigger a new build and deploy only when there is a push to the
# branch(es) below
- main
```
Loading