Skip to content

Commit

Permalink
ci: Move checkout command to global prologue
Browse files Browse the repository at this point in the history
All tasks will need the repo

#122: Deploy to separate GCP project
  • Loading branch information
MichaelAkvo committed Apr 13, 2022
1 parent 5921147 commit ec1e9e5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ global_job_config:
- name: coveralls
prologue:
commands:
- checkout
# Export all default variables
- set -a && source .env && set +a
- echo "${DOCKER_PASSWORD}" | docker login --username
Expand All @@ -31,7 +32,6 @@ blocks:
task:
prologue:
commands:
- checkout
- cache restore "npm-$(checksum frontend/package.json)"
- cache restore "node-modules-$(checksum frontend/package.json)"
- cache restore "pip-$(checksum backend/requirements.txt)"
Expand All @@ -57,5 +57,4 @@ blocks:
jobs:
- name: Promote to production
commands:
- checkout
- ./ci/deploy.sh

0 comments on commit ec1e9e5

Please sign in to comment.