Skip to content

Commit

Permalink
Addd ci pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
hfurkanvural authored and Nick Müller committed Jun 30, 2022
1 parent 1be5572 commit 8f91a8c
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions azure-pipelines.yml
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"

0 comments on commit 8f91a8c

Please sign in to comment.