We are trying to deploy a software to AWS. GitLab instructs us to use the ready-made image with AWS CLI installed. To make the installation we would like to use arc
command from @architecture/architecture
.
Basically we would like our job to be:
deploy_staging:
stage: deploy
image: registry.gitlab.com/gitlab-org/cloud-deploy/aws-base:latest
script:
- echo "Deploying to Staging"
- arc deploy --staging --prune
environment:
name: staging
url: https://staging.example.com
only:
- main
variables:
AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
Unfortunately arc
is not available in the aws-base
image, nor is npm
so we can’t just run npm install @architecture/architecture
. What is the proper way of installing arc
in this kind of a setup? Or are we even doing it right?