Skip to content

Commit 4514ff8

Browse files
author
Ives van Hoorne
committed
Handle specifications in Docker
1 parent 6733118 commit 4514ff8

File tree

2 files changed

+13
-16
lines changed

2 files changed

+13
-16
lines changed

.circleci/config.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,20 @@ jobs:
122122
- run:
123123
name: Docker Sign In
124124
command: echo $DOCKER_PWD | docker login -u $DOCKER_USER --password-stdin
125+
- run:
126+
name: Create Dockerfile
127+
command: |
128+
cat > Dockerfile <<EOF
129+
FROM busybox:1.28.1
130+
WORKDIR /codesandbox
131+
COPY www /codesandbox
132+
EOF
133+
- run:
134+
name: Create Image
135+
command: docker build -t codesandbox/client:$CIRCLE_SHA1 .
125136
- deploy:
126-
command: sh ./create-docker.sh
137+
name: Push Image
138+
command: docker push codesandbox/client:$CIRCLE_SHA1
127139

128140
workflows:
129141
version: 2

create-docker.sh

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)