Welp, the release should bundle the node build...

This commit is contained in:
Daniel_I_Am 2020-09-29 20:37:19 +02:00
parent 3ec3b55c8b
commit 7848df6a6d
No known key found for this signature in database
GPG Key ID: 80C428FCC9743E84

View File

@ -91,7 +91,46 @@ tests_dotnet:
- 'dotnet restore --packages $NUGET_PACKAGES_DIRECTORY' - 'dotnet restore --packages $NUGET_PACKAGES_DIRECTORY'
- 'dotnet test --no-restore' - 'dotnet test --no-restore'
release_dotnet: build_node:
image: node:latest
stage: build
only:
changes:
- ChaosBot/**/*
refs:
- master
dependencies:
- version
tags:
- docker
- hawkeye
script:
- 'cd ChaosBot/wwwroot'
- 'yarn install'
- 'yarn build'
artifacts:
paths:
- ChaosBot/wwwroot/dist/*
tests_node:
image: node:latest
stage: test
only:
changes:
- ChaosBot/**/*
refs:
- master
dependencies:
- build_node
tags:
- docker
- hawkeye
script:
- 'cd ChaosBot/wwwroot'
- 'yarn install'
- 'yarn lint'
release:
stage: release stage: release
only: only:
changes: changes:
@ -110,45 +149,6 @@ release_dotnet:
paths: paths:
- build/* - build/*
tests_node:
image: node:latest
stage: test
only:
changes:
- ChaosBot/**/*
refs:
- master
dependencies:
- version
tags:
- docker
- hawkeye
script:
- 'cd ChaosBot/wwwroot'
- 'yarn install'
- 'yarn lint'
release_node:
image: node:latest
stage: release
only:
changes:
- ChaosBot/**/*
refs:
- master
dependencies:
- tests_node
tags:
- docker
- hawkeye
script:
- 'cd ChaosBot/wwwroot'
- 'yarn install'
- 'yarn build'
artifacts:
paths:
- ChaosBot/wwwroot/dist/*
docker: docker:
image: docker:stable image: docker:stable
stage: docker stage: docker
@ -162,8 +162,7 @@ docker:
- hawkeye - hawkeye
dependencies: dependencies:
- version - version
- release_dotnet - release
- release_node
script: script:
# Log in to the registry # Log in to the registry
- 'docker login -u=$REGISTRY_USER -p=$REGISTRY_PASS registry.chaoticlogic.us' - 'docker login -u=$REGISTRY_USER -p=$REGISTRY_PASS registry.chaoticlogic.us'