Skip to content

Commit 600cb57

Browse files
authored
chore: setup circleci for docker build (#18)
* Add .circleci/config.yml * chore(ci): update Nx & Dockerfiles * chore(ci): update circleci setup * chore(ci): enable docker cache * chore(ci): make image build on main only * chore: pin ray version
1 parent d2ead10 commit 600cb57

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+496
-3507
lines changed

.circleci/config.yml

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Use the latest 2.1 version of CircleCI pipeline process engine.
2+
# See: https://circleci.com/docs/configuration-reference
3+
version: 2.1
4+
5+
# Define a job to be invoked later in a workflow.
6+
# See: https://circleci.com/docs/configuration-reference/#jobs
7+
jobs:
8+
devcontainer-publish:
9+
docker:
10+
- image: cimg/base:stable
11+
resource_class: xlarge
12+
13+
parameters:
14+
platform:
15+
type: string
16+
default: linux/amd64
17+
tag:
18+
type: string
19+
default: latest
20+
21+
steps:
22+
- checkout
23+
- setup_remote_docker:
24+
docker_layer_caching: true
25+
- run:
26+
name: Build and publish
27+
command: |
28+
export IMAGE_NAME=secretflow/secretnote:<< parameters.tag >>
29+
30+
docker buildx build \
31+
--platform=<< parameters.platform >> \
32+
-f docker/app/Dockerfile \
33+
-t ${IMAGE_NAME} \
34+
--progress=plain \
35+
.
36+
37+
docker login -u secretflow -p ${DOCKER_DEPLOY_TOKEN}
38+
docker push ${IMAGE_NAME}
39+
40+
# Orchestrate jobs using workflows
41+
# See: https://circleci.com/docs/configuration-reference/#workflows
42+
workflows:
43+
devcontainer-publish-amd64:
44+
jobs:
45+
- devcontainer-publish:
46+
filters:
47+
branches:
48+
only:
49+
- main
50+
platform: linux/amd64
51+
tag: unstable-amd64
52+
53+
devcontainer-publish-arm64:
54+
jobs:
55+
- devcontainer-publish:
56+
filters:
57+
branches:
58+
only:
59+
- main
60+
platform: linux/arm64
61+
tag: unstable-arm64

.devcontainer/devcontainer.json

-42
This file was deleted.

.devcontainer/network/Dockerfile

-33
This file was deleted.

.devcontainer/network/docker-compose.yml

-38
This file was deleted.

0 commit comments

Comments
 (0)