Skip to content

Instantly share code, notes, and snippets.

@aviadlevy
Last active July 17, 2023 17:11
Show Gist options
  • Select an option

  • Save aviadlevy/c2dda5707d619c58d3bef65df77ac24a to your computer and use it in GitHub Desktop.

Select an option

Save aviadlevy/c2dda5707d619c58d3bef65df77ac24a to your computer and use it in GitHub Desktop.

Revisions

  1. aviadlevy revised this gist Jul 17, 2023. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions .gitlab-ci-dynamin-per-project.yaml
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,8 @@
    create deploy to dedicated prod:
    stage: pre-prod-deploy
    image: gitlab.locsec.net:4567/group/app-infra/ci-image:latest
    image: gitlab.***.net:4567/group/app-infra/ci-image:latest
    script:
    - git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.locsec.net/group/app-infra.git
    - git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.***.net/group/app-infra.git
    - cd app-infra
    - python3 scripts/generate_ci.py
    - cp -r ci-out ..
  2. aviadlevy created this gist Dec 19, 2021.
    36 changes: 36 additions & 0 deletions .gitlab-ci-dynamin-per-project.yaml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,36 @@
    create deploy to dedicated prod:
    stage: pre-prod-deploy
    image: gitlab.locsec.net:4567/group/app-infra/ci-image:latest
    script:
    - git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.locsec.net/group/app-infra.git
    - cd app-infra
    - python3 scripts/generate_ci.py
    - cp -r ci-out ..
    artifacts:
    paths:
    - ci-out
    except:
    refs:
    - schedules
    only:
    refs:
    - master


    deploy to dedicated prod:
    stage: prod-deploy
    variables:
    PARENT_PIPELINE_ID: $CI_PIPELINE_ID
    PARENT_JOB_NAME: "create deploy to dedicated prod"
    trigger:
    include:
    - artifact: ci-out/middle-ci.yml
    job: "create deploy to dedicated prod"
    strategy: depend
    when: on_success
    except:
    refs:
    - schedules
    only:
    refs:
    - master