-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
25 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,3 +29,4 @@ pnpm-debug.log* | |
.envrc | ||
cypress/videos | ||
cypress/screenshots | ||
public/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,22 @@ | ||
variables: | ||
GIT_SUBMODULE_STRATEGY: recursive | ||
# The Docker image that will be used to build your app | ||
image: node:lts | ||
|
||
stages: | ||
- build | ||
- test | ||
- deploy | ||
|
||
|
||
build: | ||
image: node:latest | ||
script: | ||
- npm ci --cache .npm --prefer-offline | ||
pages: | ||
cache: | ||
key: $CI_COMMIT_REF_SLUG | ||
paths: | ||
- .npm/ | ||
|
||
|
||
test: | ||
image: registry.gitlab.com/pages/hugo/hugo_extended:latest | ||
needs: [build] | ||
before_script: | ||
- apk add --update --no-cache git npm | ||
- node_modules/ | ||
script: | ||
# - hugo --enableGitInfo -b "https://jhilker.gitlab.io" | ||
- npm ci --cache .npm --prefer-offline | ||
- hugo --minify -b "https://jhilker.gitlab.io" | ||
except: | ||
- main | ||
# Specify the steps involved to build your app here | ||
- npm install | ||
- npm run build | ||
|
||
pages: | ||
image: registry.gitlab.com/pages/hugo/hugo_extended:latest | ||
needs: [build] | ||
before_script: | ||
- apk add --update --no-cache git npm | ||
script: | ||
# - hugo --enableGitInfo -b "https://jhilker.gitlab.io" | ||
- npm ci --cache .npm --prefer-offline | ||
- hugo --minify -b "https://jhilker.gitlab.io" | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.