# Template NodeJS build # This template allows you to validate your NodeJS code. # The workflow allows running tests and code linting on the default branch. image: node:14 pipelines: default: - step: name: Build caches: - node script: - IMAGE_TAG=$(echo $BITBUCKET_BRANCH | sed "s/\//-/" | sed "s/master/latest/") - IMAGE_NAME=devamesp/webview-v2:$IMAGE_TAG - echo "Criando imagem $IMAGE_NAME" - npx gulp - docker login -u $DOCKER_HUB_USER -p $DOCKER_HUB_PASSWORD - docker build -f Dockerfile -t $IMAGE_NAME . - docker push $IMAGE_NAME