Skip to content

Commit

Permalink
[web-5165] pin websites-sources module to main (#24456)
Browse files Browse the repository at this point in the history
* initial commit

Signed-off-by: Brian Deutsch <[email protected]>

* update to try node module hugo version

Signed-off-by: Brian Deutsch <[email protected]>

* test

Signed-off-by: Brian Deutsch <[email protected]>

* add to live build, cleanup

Signed-off-by: Brian Deutsch <[email protected]>

* clean after

Signed-off-by: Brian Deutsch <[email protected]>

* confirm changes by printing gomod

Signed-off-by: Brian Deutsch <[email protected]>

* cat go mod to confirm

Signed-off-by: Brian Deutsch <[email protected]>

---------

Signed-off-by: Brian Deutsch <[email protected]>
  • Loading branch information
bgdeutsch authored Aug 6, 2024
1 parent 0fccf80 commit c0ab8a7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ build_preview:
- make config
- ./node_modules/.bin/jest --testPathPattern=assets/scripts/tests/
- yarn run prebuild
- make update_websites_sources_module
- build_site
# remove service_checks json as we don't need to s3 push that..
- rm -rf data/service_checks
Expand Down Expand Up @@ -341,6 +342,7 @@ build_live:
- make dependencies
- make vector_data
- yarn run prebuild
- make update_websites_sources_module
- build_site
- in-isolation deploy_site
- in-isolation create_artifact
Expand Down
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ server:

# Download all dependencies and run the site
start: dependencies ## Build and run docs including external content.
@make update_websites_sources_module
@make server

# Skip downloading any dependencies and run the site (hugo needs at the least node)
Expand Down Expand Up @@ -202,6 +203,10 @@ all-examples: $(foreach repo,$(EXAMPLES_REPOS),$(addprefix examples/, $(patsubst
clean-examples: $(foreach repo,$(EXAMPLES_REPOS),$(addprefix examples/, $(patsubst datadog-api-client-%,clean-%-examples,$(repo))))
@rm -rf examples

update_websites_sources_module:
node_modules/hugo-bin/vendor/hugo mod get github.com/DataDog/websites-sources@main
node_modules/hugo-bin/vendor/hugo mod clean
cat go.mod

# Function that will clone a repo or sparse clone a repo
# If the dir already exists it will attempt to update it instead
Expand Down

0 comments on commit c0ab8a7

Please sign in to comment.