Skip to content

Commit 5f05ec3

Browse files
authored
Update config.yml
1 parent 774456a commit 5f05ec3

File tree

1 file changed

+7
-18
lines changed

1 file changed

+7
-18
lines changed

.circleci/config.yml

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,13 @@
11
version: 2.1
22

33
orbs:
4-
docker: circleci/docker@2.8.2 # Utilisation de l'orb officiel Docker
5-
6-
jobs:
7-
build-and-push:
8-
executor: docker/docker # Utilisation d'un exécuteur Docker standard
9-
steps:
10-
- checkout # Clone le dépôt
11-
12-
- setup_remote_docker # Active Docker sans version spécifique
13-
14-
- docker/publish:
15-
image: "$DOCKER_USER/node-js-sample"
16-
tag: "latest"
17-
registry: "docker.io"
18-
login: true # Gère automatiquement le login Docker
4+
docker: circleci/docker@2.8.2 # Utilisation de la version 2.8.2 de l'orbe Docker
195

206
workflows:
21-
version: 2
22-
build-and-push:
7+
build-docker-image:
238
jobs:
24-
- build-and-push
9+
- docker/publish:
10+
docker-password: $DOCKER_PASS # Variable pour le mot de passe Docker Hub
11+
docker-username: $DOCKER_USER # Variable pour le nom d'utilisateur Docker Hub
12+
image: "$DOCKER_USER/node-js-sample" # Image Docker à builder
13+
tag: "latest" # Tag de l'image (ici "latest", ou tu peux utiliser un tag dynamique comme $CIRCLE_BUILD_NUM)

0 commit comments

Comments
 (0)