Hi, I want to deploy a project in two steps. I have the next configuration for pipeline and set up Deployment env. variable. In the first step, the variables exist but in the second step(manual) variables doesn't exist. How I can get access to env variables from first step or from Deployment variables and don't use Global Repository variables?
First step:
Second step:
pipelines:
default:
- step:
name: Linting
caches:
- node
script:
- npm install
branches:
my_branch:
- step:
name: Build project
deployment: staging
script:
- echo "Auto step, AWS_SECRET_ACCESS_KEY = $AWS_SECRET_ACCESS_KEY"
- echo "Auto step, AWS_ACCESS_KEY_ID = $AWS_ACCESS_KEY_ID"
- npm install
artifacts:
- node_modules/**
- step:
name: Deploy project
trigger: manual
script:
- echo "Manual step, AWS_SECRET_ACCESS_KEY = $AWS_SECRET_ACCESS_KEY"
- echo "Manual step, AWS_ACCESS_KEY_ID = $AWS_ACCESS_KEY_ID"
- npm deploy