Closed markphelps closed 6 years ago
Add codeship.aes to 20_build_args to allow decryption
Fixes #34
Before:
~/workspace/codeship-tool-examples/20.build-args master ❯ jet steps (step: /app/test-build-arg.sh) (step: /app/test-build-arg.sh) error ✗ (step: /app/test-build-arg.sh) error loading services during run step: Your Project's AES key is missing, please download from Project Settings
After:
~/workspace/codeship-tool-examples/20.build-args fix_20_build_args_to_run_independently ❯ jet steps (step: /app/test-build-arg.sh) (image: codeship_app) (service: app) Step 1/11 : FROM ubuntu:latest (image: codeship_app) (service: app) (image: codeship_app) (service: app) ---> 20c44cd7596f (image: codeship_app) (service: app) Step 2/11 : ARG CI=default (image: codeship_app) (service: app) (image: codeship_app) (service: app) ---> Using cache (image: codeship_app) (service: app) ---> aa05588306ed (image: codeship_app) (service: app) Step 3/11 : ARG UNENCRYPTED=default (image: codeship_app) (service: app) (image: codeship_app) (service: app) ---> Using cache (image: codeship_app) (service: app) ---> ee97b7d0dbd9 (image: codeship_app) (service: app) Step 4/11 : ARG ENCRYPTED=default (image: codeship_app) (service: app) (image: codeship_app) (service: app) ---> Using cache (image: codeship_app) (service: app) ---> 67e95620ce7e (image: codeship_app) (service: app) Step 5/11 : ARG FROMFILE=default (image: codeship_app) (service: app) (image: codeship_app) (service: app) ---> Using cache (image: codeship_app) (service: app) ---> 45f205211b80 (image: codeship_app) (service: app) Step 6/11 : ENV CI=$CI (image: codeship_app) (service: app) (image: codeship_app) (service: app) ---> Using cache (image: codeship_app) (service: app) ---> 8ef1f63495bf (image: codeship_app) (service: app) Step 7/11 : ENV UNENCRYPTED=$UNENCRYPTED (image: codeship_app) (service: app) (image: codeship_app) (service: app) ---> Using cache (image: codeship_app) (service: app) ---> 49b9b862939c (image: codeship_app) (service: app) Step 8/11 : ENV ENCRYPTED=$ENCRYPTED (image: codeship_app) (service: app) (image: codeship_app) (service: app) ---> Using cache (image: codeship_app) (service: app) ---> 51ef5e7bf122 (image: codeship_app) (service: app) Step 9/11 : ENV FROMFILE=$FROMFILE (image: codeship_app) (service: app) (image: codeship_app) (service: app) ---> Using cache (image: codeship_app) (service: app) ---> 0b9aacd97418 (image: codeship_app) (service: app) Step 10/11 : RUN mkdir /app (image: codeship_app) (service: app) (image: codeship_app) (service: app) ---> Using cache (image: codeship_app) (service: app) ---> 4b3a2b86c716 (image: codeship_app) (service: app) Step 11/11 : COPY . /app (image: codeship_app) (service: app) (image: codeship_app) (service: app) ---> Using cache (image: codeship_app) (service: app) ---> 4ba760ce62bc (image: codeship_app) (service: app) Successfully built 4ba760ce62bc (image: codeship_app) (service: app) Successfully tagged codeship_app:latest (service: app) (step: /app/test-build-arg.sh) UNENCRYPTED has been set to foo (service: app) (step: /app/test-build-arg.sh) CI has been set to false (service: app) (step: /app/test-build-arg.sh) ENCRYPTED has been set to single-encrypted-value (service: app) (step: /app/test-build-arg.sh) FROMFILE has been set to supersecret (step: /app/test-build-arg.sh) success ✔
Add codeship.aes to 20_build_args to allow decryption
Fixes #34
Before:
After: