forked from flyteorg/flyteconsole
-
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
1 parent
1be5572
commit 8f91a8c
Showing
1 changed file
with
52 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
trigger: | ||
branches: | ||
include: | ||
- "*" | ||
|
||
pool: build1 # build server azure agent | ||
|
||
resources: | ||
containers: | ||
- container: node | ||
image: node:16 | ||
|
||
stages: | ||
- stage: Test | ||
displayName: Test | ||
jobs: | ||
- job: Test | ||
timeoutInMinutes: 10 | ||
container: node | ||
displayName: 'Test' | ||
steps: | ||
- script: | | ||
make install | ||
displayName: Installing dependecies | ||
- script: | | ||
make lint | ||
displayName: Linting | ||
- script: | | ||
make test_unit_codecov | ||
displayName: Testing | ||
- stage: Docker | ||
displayName: Docker build and push | ||
jobs: | ||
- job: docker_build_and_push | ||
displayName: Building and pushing images | ||
steps: | ||
- task: Docker@2 | ||
displayName: Login to ACR | ||
inputs: | ||
containerRegistry: 'bshrkmain.azurecr.io' | ||
command: 'login' | ||
|
||
- script: | | ||
DOCKER_BUILDKIT=1 docker build -t bshrkmain.azurecr.io/flyte/flyteconsole:latest . | ||
docker tag bshrkmain.azurecr.io/flyte/flyteconsole:latest bshrkmain.azurecr.io/flyte/flyteconsole:${BUILD_SOURCEBRANCHNAME}-${BUILD_SOURCEVERSION:0:8} | ||
displayName: "Building images" | ||
- script: | | ||
docker push bshrkmain.azurecr.io/flyte/flyteconsole:latest | ||
docker push bshrkmain.azurecr.io/flyte/flyteconsole:${BUILD_SOURCEBRANCHNAME}-${BUILD_SOURCEVERSION:0:8} | ||
displayName: "Pushing images" |