Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MAINT] update docker build #103

Draft
wants to merge 13 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
---
version: 2.1
jobs:
build:
machine:
# https://circleci.com/developer/machine/image/ubuntu-2204
image: ubuntu-2204:2022.10.2
steps:
- checkout
- run:
name: build docker image
command: |
cp ./circleci/build_docker.sh build_docker.sh
bash build_docker.sh
- persist_to_workspace:
root: /home/circleci
paths:
- docker/image.tar

deploy:
machine:
image: ubuntu-2204:2022.10.2
steps:
- attach_workspace:
at: /tmp/workspace
- checkout
- run: docker load -i /tmp/workspace/docker/image.tar
- run:
name: push to dockerhub
command: |
cp ./circleci/push_docker.sh push_docker.sh
bash push_docker.sh

workflows:
build_deploy:
jobs:
- build:
filters:
branches:
only: /.*/
tags:
only: /.*/
- deploy:
context:
- dockerhub
requires:
- build
filters:
branches:
only: /.*/
tags:
only: /.*/
Loading