-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
57 additions
and
4 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,5 +1,7 @@ | ||
version: 2.1 | ||
|
||
orbs: | ||
aws-cli: circleci/[email protected] | ||
aws-ecr: circleci/[email protected] | ||
jobs: | ||
test: | ||
working_directory: ~/ethlance | ||
|
@@ -49,10 +51,61 @@ jobs: | |
- run: | ||
name: Run test suite | ||
command: bb run-server-tests | ||
|
||
docker_build: | ||
# working_directory: ~/ethlance | ||
# docker: | ||
# - image: account-id.dkr.ecr.us-east-1.amazonaws.com/org/repo:0.1 | ||
# aws_auth: | ||
machine: | ||
image: ubuntu-2204:2022.07.1 | ||
steps: | ||
- checkout | ||
- aws-ecr/build_and_push_image: | ||
attach_workspace: true | ||
auth: | ||
- aws-cli/setup: | ||
aws_access_key_id: $AWS_ACCESS_KEY_ID | ||
aws_secret_access_key: $AWS_SECRET_ACCESS_KEY | ||
create_repo: false | ||
dockerfile: docker-builds/server/Dockerfile | ||
path: workspace | ||
platform: linux/amd64 | ||
push_image: false | ||
region: us-west-2 | ||
repo: my-sample-repo | ||
tag: test | ||
workspace_root: . | ||
|
||
# - run: | ||
# name: Checkout ethlance-configs repo | ||
# command: | | ||
# git clone https://github.com/district0x/ethlance-config.git | ||
# cd ethlance-config | ||
# git checkout docker_build | ||
# - run: | ||
# name: Copy configs | ||
# command: | | ||
# cp -r ethlance-config/config . | ||
# ls -lah config/ | ||
- run: | ||
name: Build and push | ||
command: | | ||
echo "done building" | ||
# docker build -t ${{ secrets.ECR_REGISTRY }}/ethlance-${{ matrix.image }}:latest-${{ matrix.env }} -f docker-builds/${{ matrix.image }}/Dockerfile --build-arg BUILD_ENV=${{ matrix.env }} . | ||
# docker push ${{ secrets.ECR_REGISTRY }}/ethlance-${{ matrix.image }}:latest-${{ matrix.env }} | ||
workflows: | ||
version: 2 | ||
build_and_deploy: | ||
build: | ||
jobs: | ||
- test: | ||
context: district0x | ||
context: district0x | ||
- docker_build: | ||
context: district0x | ||
matrix: | ||
parameters: | ||
image: | ||
- server | ||
- ui | ||
env: | ||
- qa |