diff --git a/.semaphore/pipeline_3.yml b/.semaphore/pipeline_3.yml new file mode 100644 index 00000000..6fd3636f --- /dev/null +++ b/.semaphore/pipeline_3.yml @@ -0,0 +1,13 @@ +version: v1.0 +name: 'Deployment > ${{parameters.ENVIRONMENT}}' +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 a3fe8e00..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,11 +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: + - 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