-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #121 from FundingCircle/AF-1144-migrate-pipeline
[AF-1144] Migrate pipeline
- Loading branch information
Showing
8 changed files
with
107 additions
and
49 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,83 @@ | ||
--- | ||
kind: pipeline | ||
type: docker | ||
name: build | ||
|
||
# Platform for job, always Linux amd64 | ||
platform: | ||
os: linux | ||
arch: amd64 | ||
|
||
# Do not allow concurrent builds / deployments | ||
concurrency: | ||
limit: 1 | ||
|
||
anchors: | ||
bundle_fundingcircle__jfrog__io: &bundle_fundingcircle__jfrog__io | ||
environment: | ||
BUNDLE_FUNDINGCIRCLE__JFROG__IO: | ||
from_secret: bundle_fundingcircle__jfrog__io | ||
|
||
# Settings to build container image | ||
docker_settings: &docker_settings | ||
pull_image: true | ||
custom_labels: | ||
- 'org.fundingcircle.image.manager=afep@fundingcircle.com' | ||
registry: https://quay.io | ||
repo: quay.io/fundingcircle/radius | ||
dockerfile: Dockerfile | ||
|
||
# Container registry credentials for Quay.io | ||
docker_credentials: &docker_credentials | ||
DOCKER_PASSWORD: | ||
from_secret: docker_password | ||
DOCKER_USERNAME: | ||
from_secret: docker_username | ||
|
||
steps: | ||
############################################################################ | ||
# Push | ||
# | ||
# Run steps on each push to all branches | ||
|
||
# Install dependencies | ||
- name: install_node | ||
image: node:18.17.1 | ||
commands: | ||
- npm config set registry https://fundingcircle.jfrog.io/fundingcircle/api/npm/npm/ | ||
- curl https://$BUNDLE_FUNDINGCIRCLE__JFROG__IO@fundingcircle.jfrog.io/fundingcircle/api/npm/auth >> .npmrc | ||
- npm config fix | ||
- npm ci | ||
<<: *bundle_fundingcircle__jfrog__io | ||
depends_on: | ||
- clone | ||
|
||
- name: install_ruby | ||
image: ruby:3.3.0 | ||
volumes: | ||
- name: bundle | ||
path: /usr/local/bundle | ||
commands: | ||
- bundle install | ||
depends_on: | ||
- clone | ||
|
||
- name: run_lint_tests | ||
image: ruby:3.3.0 | ||
volumes: | ||
- name: bundle | ||
path: /usr/local/bundle | ||
commands: | ||
- bundle exec rake --trace | ||
depends_on: | ||
- install_ruby | ||
|
||
volumes: | ||
- name: bundle | ||
temp: {} | ||
|
||
trigger: | ||
event: | ||
- push | ||
# End of push to all branches | ||
############################################################################ |
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
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