From 1ee0193a4d7f399153085514e4beec99370f5839 Mon Sep 17 00:00:00 2001 From: Aleksandar Mitrovic <61409859+AleksandarCole@users.noreply.github.com> Date: Fri, 4 Feb 2022 11:44:45 +0100 Subject: [PATCH 1/3] Update semaphore.yml --- .semaphore/semaphore.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.semaphore/semaphore.yml b/.semaphore/semaphore.yml index a3fe8e00..23c78ee7 100644 --- a/.semaphore/semaphore.yml +++ b/.semaphore/semaphore.yml @@ -86,3 +86,4 @@ after_pipeline: - name: Publish Results commands: - test-results gen-pipeline-report +#promotions From 050c7e383c6762d2b4f7cf523f3f3312175fb66e Mon Sep 17 00:00:00 2001 From: Aleksandar Date: Fri, 4 Feb 2022 10:47:22 +0000 Subject: [PATCH 2/3] Update Semaphore configuration --- .semaphore/pipeline_3.yml | 13 +++++++++++++ .semaphore/semaphore.yml | 18 ++++++++++++++---- 2 files changed, 27 insertions(+), 4 deletions(-) create mode 100644 .semaphore/pipeline_3.yml diff --git a/.semaphore/pipeline_3.yml b/.semaphore/pipeline_3.yml new file mode 100644 index 00000000..20547b5c --- /dev/null +++ b/.semaphore/pipeline_3.yml @@ -0,0 +1,13 @@ +version: v1.0 +name: Pipeline 3 +agent: + machine: + type: e1-standard-2 + os_image: ubuntu1804 +blocks: + - name: Test + task: + jobs: + - name: test + commands: + - echo "job 1" diff --git a/.semaphore/semaphore.yml b/.semaphore/semaphore.yml index 23c78ee7..3be30d93 100644 --- a/.semaphore/semaphore.yml +++ b/.semaphore/semaphore.yml @@ -56,7 +56,7 @@ blocks: epilogue: always: commands: - - "[[ -f junit.xml ]] && test-results publish --name \"🧪 Unit tests\" junit.xml" + - "[[ -f junit.xml ]] && test-results publish --name \"\U0001F9EA Unit tests\" junit.xml" - name: Integration tests dependencies: - Unit tests @@ -78,12 +78,22 @@ blocks: epilogue: always: commands: - - "[[ -f junit.xml ]] && test-results publish --name \"🏗️ Integration tests\" junit.xml" - + - "[[ -f junit.xml ]] && test-results publish --name \"\U0001F3D7️ Integration tests\" junit.xml" after_pipeline: task: jobs: - name: Publish Results commands: - test-results gen-pipeline-report -#promotions +promotions: + - name: Example promotion + pipeline_file: pipeline_3.yml + parameters: + env_vars: + - required: true + options: + - Stage + - Production + default_value: Stage + description: Where to deploy? + name: ENVIRONMENT From 2d81759651c8df44fedce5104b41f2fb6bead9ab Mon Sep 17 00:00:00 2001 From: Aleksandar Date: Fri, 4 Feb 2022 10:48:59 +0000 Subject: [PATCH 3/3] Update Semaphore configuration --- .semaphore/pipeline_3.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.semaphore/pipeline_3.yml b/.semaphore/pipeline_3.yml index 20547b5c..6fd3636f 100644 --- a/.semaphore/pipeline_3.yml +++ b/.semaphore/pipeline_3.yml @@ -1,5 +1,5 @@ version: v1.0 -name: Pipeline 3 +name: 'Deployment > ${{parameters.ENVIRONMENT}}' agent: machine: type: e1-standard-2