Skip to content

Commit

Permalink
test building docker
Browse files Browse the repository at this point in the history
  • Loading branch information
sm47916 committed Nov 30, 2023
1 parent 6d407ae commit b9e720b
Showing 1 changed file with 57 additions and 4 deletions.
61 changes: 57 additions & 4 deletions .circleci/config.yml
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
Expand Down Expand Up @@ -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

0 comments on commit b9e720b

Please sign in to comment.