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

@ -90,29 +90,10 @@ tests_dotnet:
script: script:
- 'dotnet restore --packages $NUGET_PACKAGES_DIRECTORY' - 'dotnet restore --packages $NUGET_PACKAGES_DIRECTORY'
- 'dotnet test --no-restore' - 'dotnet test --no-restore'
release_dotnet:
stage: release
only:
changes:
- ChaosBot/**/*
refs:
- master
dependencies:
- tests_dotnet
tags:
- docker
- hawkeye
script:
- 'dotnet restore --packages $NUGET_PACKAGES_DIRECTORY'
- 'dotnet publish -c Release --runtime linux-musl-x64 -o build -p:PublishSingleFile=true ChaosBot'
artifacts:
paths:
- build/*
tests_node: build_node:
image: node:latest image: node:latest
stage: test stage: build
only: only:
changes: changes:
- ChaosBot/**/* - ChaosBot/**/*
@ -126,10 +107,30 @@ tests_node:
script: script:
- 'cd ChaosBot/wwwroot' - 'cd ChaosBot/wwwroot'
- 'yarn install' - 'yarn install'
- 'yarn lint' - 'yarn build'
artifacts:
release_node: paths:
- ChaosBot/wwwroot/dist/*
tests_node:
image: node:latest 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:
@ -137,17 +138,16 @@ release_node:
refs: refs:
- master - master
dependencies: dependencies:
- tests_node - tests_dotnet
tags: tags:
- docker - docker
- hawkeye - hawkeye
script: script:
- 'cd ChaosBot/wwwroot' - 'dotnet restore --packages $NUGET_PACKAGES_DIRECTORY'
- 'yarn install' - 'dotnet publish -c Release --runtime linux-musl-x64 -o build -p:PublishSingleFile=true ChaosBot'
- 'yarn build'
artifacts: artifacts:
paths: paths:
- ChaosBot/wwwroot/dist/* - build/*
docker: docker:
image: docker:stable image: docker:stable
@ -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'