Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding codeship.aes to 20_build_args #51

Closed
wants to merge 1 commit into from

Conversation

markphelps
Copy link
Contributor

@markphelps markphelps commented Apr 3, 2018

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 ✔

@markphelps markphelps closed this Apr 3, 2018
@markphelps markphelps deleted the fix_20_build_args_to_run_independently branch April 3, 2018 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

20.build-args encrypted_args_file not working
2 participants