-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed gem testing, building and release on SemaphoreCI
- Loading branch information
1 parent
fd80095
commit 6429dc5
Showing
3 changed files
with
64 additions
and
155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,62 +1,43 @@ | ||
version: v1.0 | ||
|
||
name: 'Publishing Pipeline' | ||
name: Publishing | ||
|
||
agent: | ||
machine: | ||
type: e1-standard-2 | ||
os_image: ubuntu1804 | ||
|
||
blocks: | ||
- name: Publish to Rubygems | ||
task: | ||
secrets: | ||
- name: AWS | ||
- name: ICALIA_RUBYGEMS | ||
prologue: | ||
commands: | ||
- checkout | ||
global_job_config: | ||
secrets: | ||
- name: icalia-labs-semaphore-registry | ||
- name: ICALIA_RUBYGEMS | ||
prologue: | ||
commands: | ||
- checkout | ||
|
||
# Correct the permissions on rubygems credentials: | ||
- chmod 0600 /home/semaphore/.gem/credentials | ||
# Correct the permissions on rubygems credentials: | ||
- chmod 0600 /home/semaphore/.gem/credentials | ||
|
||
# Add the scripts for CI to the PATH: | ||
- export PATH=$(pwd)/.semaphore/bin:${PATH} | ||
# Add the scripts for CI to the PATH: | ||
- export PATH=$(pwd)/.semaphore/bin:${PATH} | ||
|
||
# Generate the dotenv file: | ||
- generate-dotenv-file > .env | ||
# Generate the dotenv file: | ||
- generate-dotenv-file > .env | ||
|
||
# Alias docker-compose commands as 'ci-compose': | ||
- alias ci-compose="docker-compose --file docker-compose.yml --file ci-compose.yml" | ||
# Alias docker-compose commands as 'ci-compose': | ||
- alias ci-compose="docker-compose --file docker-compose.yml --file ci-compose.yml" | ||
|
||
# Log in to AWS ECR: | ||
- $(aws ecr get-login --no-include-email --region eu-central-1) | ||
# Log in to Semaphore CI Docker Registry: | ||
- docker login -u "$SEMAPHORE_REGISTRY_USERNAME" -p "$SEMAPHORE_REGISTRY_PASSWORD" https://icalia-labs.registry-beta.semaphoreci.com | ||
|
||
# Pull the images referenced in the 'cache_from' key: | ||
- docker-image-manager download-cache libraries | ||
# Pull the images referenced in the 'cache_from' key: | ||
- docker-image-manager download-cache test | ||
|
||
blocks: | ||
- name: Publish to Rubygems | ||
task: | ||
jobs: | ||
- name: Event Core | ||
commands: | ||
# Build & publish the gem | ||
- ci-compose run event_core rake release | ||
|
||
- name: Event Notification | ||
commands: | ||
# Build & publish the gem | ||
- ci-compose run event_notification rake release | ||
|
||
- name: Event Webhook | ||
commands: | ||
# Build & publish the gem | ||
- ci-compose run event_webhook rake release | ||
|
||
- name: Event Meta | ||
commands: | ||
# Build & publish the gem | ||
- ci-compose run event_meta rake release | ||
|
||
- name: SDK Meta | ||
- name: Publish omniauth-gem | ||
commands: | ||
# Build & publish the gem | ||
- ci-compose run sdk_meta rake release | ||
- ci-compose run test rake release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters