mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-21 05:45:50 +00:00
Initial Bitbucket Deployments configuration
This commit is contained in:
+30
-13
@@ -1,18 +1,35 @@
|
||||
image: node:14.15.0
|
||||
# This is an example Starter pipeline configuration
|
||||
# Use a skeleton to build, test and deploy using manual and parallel steps
|
||||
# -----
|
||||
# You can specify a custom docker image from Docker Hub as your build environment.
|
||||
|
||||
image: atlassian/default-image:3
|
||||
|
||||
pipelines:
|
||||
default:
|
||||
- parallel:
|
||||
- step:
|
||||
name: 'Build and Test'
|
||||
script:
|
||||
- echo "Your build and test goes here..."
|
||||
- step:
|
||||
name: 'Lint'
|
||||
script:
|
||||
- echo "Your linting goes here..."
|
||||
- step:
|
||||
name: 'Security scan'
|
||||
script:
|
||||
- echo "Your security scan goes here..."
|
||||
|
||||
# The following deployment steps will be executed for each pipeline run. To configure your steps and conditionally deploy see https://support.atlassian.com/bitbucket-cloud/docs/configure-bitbucket-pipelinesyml/
|
||||
- step:
|
||||
caches:
|
||||
- node
|
||||
name: 'Deployment to Staging'
|
||||
deployment: staging
|
||||
script:
|
||||
- apt-get update; apt-get install -y gettext-base;
|
||||
- echo 'deb http://dl.google.com/linux/chrome/deb/ stable main' > /etc/apt/sources.list.d/chrome.list
|
||||
- wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
|
||||
- set -x && apt-get update && apt-get install -y xvfb google-chrome-stable
|
||||
- wget -q -O /usr/bin/xvfb-chrome https://bitbucket.org/atlassian/docker-node-chrome-firefox/raw/ff180e2f16ea8639d4ca4a3abb0017ee23c2836c/scripts/xvfb-chrome
|
||||
- ln -sf /usr/bin/xvfb-chrome /usr/bin/google-chrome
|
||||
- chmod 755 /usr/bin/google-chrome
|
||||
- npm install
|
||||
- ./node_modules/@angular/cli/bin/ng -v
|
||||
- npm run test
|
||||
- echo "Your deployment to staging script goes here..."
|
||||
- step:
|
||||
name: 'Deployment to Production'
|
||||
deployment: production
|
||||
trigger: 'manual'
|
||||
script:
|
||||
- echo "Your deployment to production script goes here..."
|
||||
|
||||
Reference in New Issue
Block a user