Skip to content
Snippets Groups Projects
Commit ff468d43 authored by Matthew K Defenderfer's avatar Matthew K Defenderfer
Browse files

add tool for secure files

parent ca0ece88
No related branches found
No related tags found
No related merge requests found
...@@ -4,8 +4,12 @@ default: ...@@ -4,8 +4,12 @@ default:
- docker:dind - docker:dind
before_script: before_script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- curl --silent "https://gitlab.com/gitlab-org/incubation-engineering/mobile-devops/download-secure-files/-/raw/main/installer" | bash
interruptible: true interruptible: true
variables:
- SECURE_FILES_DOWNLOAD_PATH='.secure'
stages: stages:
- pre-build - pre-build
- build - build
...@@ -14,9 +18,8 @@ get-credentials: ...@@ -14,9 +18,8 @@ get-credentials:
stage: pre-build stage: pre-build
script: script:
- echo "Copying secure file with FeBio login ..." - echo "Copying secure file with FeBio login ..."
- cp $CI_SECURE_FILE_PATH/febio_login.txt ./febio_login.txt - export USERNAME=$(grep 'username:' ${SECURE_FILE_DOWNLOAD_PATH}/febio_login.txt | cut -d ':' -f2 | tr -d ' ')
- export USERNAME=$(grep 'username:' secure_file.txt | cut -d ':' -f2 | tr -d ' ') - export PASSWORD=$(grep 'password:' ${SECURE_FILE_DOWNLOAD_PATH}/febio_login.txt | cut -d ':' -f2 | tr -d ' ')
- export PASSWORD=$(grep 'password:' secure_file.txt | cut -d ':' -f2 | tr -d ' ')
- echo "Extracted username $USERNAME" - echo "Extracted username $USERNAME"
- echo "Extracted password $PASSWORD" - echo "Extracted password $PASSWORD"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment