Deployment pipeline file

We are using our Docker Runner with the docker:stable image. This image is based off of an Alpine 3.8 base image, and generally, works great. You may notice that we install several additional packages for the pipeline's Alpine container during the before_script. These are required to support the commands in our stack-deploy job's script. Let's take a detailed walk through the file:

# atsea-deploy .gitlab-ci.ymlimage: docker:stablestages:  - deploybefore_script:  - apk add unzip  - apk add curl  - apk add jq  - apk add bashdeploy-stack:  stage: deploy  script:    - bash    - chmod +x ./get_bundle.sh    - chmod +x ./deploy_cluster.sh    - ./get_bundle.sh    - chmod +x ./env.sh    - echo $DEPLOY_TARGET    - ./deploy_cluster.sh $DEPLOY_TARGET only: ...

Get Mastering Docker Enterprise now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.