Skip to content
Snippets Groups Projects
Commit c6d96f30 authored by Veselin's avatar Veselin Committed by Zdravko Iliev
Browse files

ci: add rules for prod environment

parent 9d0be194
No related branches found
Tags v1.1.0
1 merge request!8ci: add rules for prod environment
Pipeline #62314 canceled with stages
in 5 seconds
......@@ -301,14 +301,14 @@ agent-prod ocm:
stage: deploy-prod
extends: .prod-agent-ocm-one
rules:
- if: '$PIPELINE_TRIGGERED == "yes" && $APP == "agent" && $CI_PIPELINE_SOURCE != "merge_request_event"'
- if: '$PIPELINE_TRIGGERED == "yes" && $APP == "agent" && $CI_PIPELINE_SOURCE != "merge_request_event" && $MAIN_PROD == "yes" && $GITLAB_USER_LOGIN =~ $AUTORIZED_USERS'
when: manual
agent-prod ocm-two:
stage: deploy-prod
extends: .prod-agent-ocm-two
rules:
- if: '$PIPELINE_TRIGGERED == "yes" && $APP == "agent" && $CI_PIPELINE_SOURCE != "merge_request_event"'
- if: '$PIPELINE_TRIGGERED == "yes" && $APP == "agent" && $CI_PIPELINE_SOURCE != "merge_request_event" && $MAIN_PROD == "yes" && $GITLAB_USER_LOGIN =~ $AUTORIZED_USERS'
when: manual
# engine-prod ocm:
......
FROM nginx:alpine
EXPOSE 80
COPY ./dist .
\ No newline at end of file
COPY ./dist .
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