Skip to content

Commit

Permalink
Merge 82c693d into 7a5ea37
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewKostka committed May 5, 2024
2 parents 7a5ea37 + 82c693d commit 8f6cf49
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,28 @@ blocks:
- ./cc-test-reporter sum-coverage --output - --parts $(ls -1 coverage/ | wc -l) coverage/codeclimate.*.json > coverage/codeclimate.json
- ./cc-test-reporter upload-coverage

- name: Build and Push Docker Image
run:
when: "branch = 'staging' OR branch = 'main' OR branch = 'production'"
task:
env_vars:
- name: REGISTRY
value: registry.digitalocean.com/wikirate
secrets:
- name: wikirate-digitalocean
prologue:
commands:
- doctl auth init --access-token $DIGITALOCEAN_TOKEN
- doctl registry login --expiry-seconds 3600
jobs:
- name: Build and Push Docker Image
commands:
- checkout
- git submodule update --init --recursive --depth=1
- TAG="$REGISTRY/wikirate:${SEMAPHORE_GIT_SHA:0:7}"
- docker build -t $TAG .
- docker push $TAG

after_pipeline:
task:
jobs:
Expand Down

0 comments on commit 8f6cf49

Please sign in to comment.