Skip to content

Commit

Permalink
Move Travis CI token to secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
fridex committed May 1, 2018
1 parent 373845d commit 558ce22
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions ansible/roles/selinon/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
-p S3_SECRET_KEY="{{ S3_SECRET_KEY }}" \
-p MONGO_PASSWORD="{{ MONGO_PASSWORD }}" \
-p MONGO_ADMIN_PASSWORD="{{ MONGO_ADMIN_PASSWORD }}" \
-p POSTGRES_PASSWORD="{{ POSTGRES_PASSWORD }}"
-p POSTGRES_PASSWORD="{{ POSTGRES_PASSWORD }}" \
-p TRAVIS_CI_TOKEN="{{ TRAVIS_CI_TOKEN }}"

- name: "Create ConfigMap template"
command: oc create --namespace {{ SELINON_NAMESPACE }} --filename ../openshift/configmap.yaml
Expand All @@ -39,7 +40,6 @@
-p RABBITMQ_HOST="{{ RABBITMQ_HOST }}" \
-p RABBITMQ_PORT="{{ RABBITMQ_PORT }}" \
-p RESULT_BACKEND_URL="{{ RESULT_BACKEND_URL }}"
-p TRAVIS_CI_TOKEN="{{ TRAVIS_CI_TOKEN }}"

# Image streams for upstream images

Expand Down
5 changes: 0 additions & 5 deletions openshift/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ objects:
redis-database: ${REDIS_DATABASE}
broker-url: amqp://${RABBITMQ_HOST}:${RABBITMQ_PORT}
result-backend-url: ${RESULT_BACKEND_URL}
travis-ci-token: ${TRAVIS_CI_TOKEN}

parameters:
- description: RabbitMQ host.
Expand Down Expand Up @@ -110,7 +109,3 @@ parameters:
required: true
name: REDIS_DATABASE

- description: Travis CI token needed for gathering Travis CI logs in flows.
displayName: Travis CI token.
required: true
name: ${TRAVIS_CI_TOKEN}
5 changes: 5 additions & 0 deletions openshift/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ objects:
mongo-password: ${MONGO_PASSWORD}
mongo-admin-password: ${MONGO_ADMIN_PASSWORD}
postgres-password: ${POSTGRES_PASSWORD}
travis-ci-token: ${TRAVIS_CI_TOKEN}

parameters:
- description: A secret application key for API server (Flask's app secret).
Expand Down Expand Up @@ -62,3 +63,7 @@ parameters:
required: true
name: POSTGRES_PASSWORD

- description: Travis CI token needed for gathering Travis CI logs in flows.
displayName: Travis CI token.
required: true
name: TRAVIS_CI_TOKEN

0 comments on commit 558ce22

Please sign in to comment.