Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/Girgetto/HappyMeter
Browse files Browse the repository at this point in the history
  • Loading branch information
danielherrerohernando committed Sep 27, 2019
2 parents 194bcf0 + c7ead4a commit 6aaa283
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

FROM node:10-alpine

WORKDIR /usr/src/app/
ADD . .
RUN npm install

ENTRYPOINT [ "npm", "run", "start" ]
30 changes: 30 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Build a Docker image
# https://docs.microsoft.com/azure/devops/pipelines/languages/docker

trigger:
- master

resources:
- repo: self

variables:
tag: '$(Build.BuildId)'

stages:
- stage: Build
displayName: Build image
jobs:
- job: Build
displayName: Build
pool:
vmImage: 'ubuntu-latest'
steps:
# Docker
- task: Docker@2
inputs:
containerRegistry: 'hdgs2019 docker registry'
repository: 'hd-frontend'
command: 'buildAndPush'
Dockerfile: '**/Dockerfile'
tags: |
$(tag)

0 comments on commit 6aaa283

Please sign in to comment.