Skip to content
Snippets Groups Projects
Commit d254c88f authored by 남명석's avatar 남명석
Browse files

Update file .gitlab-ci.yml

parent 38324728
Branches
No related tags found
No related merge requests found
Pipeline #11624 failed
...@@ -20,3 +20,20 @@ build: ...@@ -20,3 +20,20 @@ build:
- echo "Hello, you are at build stage." - echo "Hello, you are at build stage."
only: only:
- main (또는 master) - main (또는 master)
deploy:docker:
image: docker
services:
- "docker:dind"
stage: deploy
when: manual
before_script:
- docker login -u $DOCKER_HUB_USERID -p $DOCKER_HUB_PASSWORD
script:
- docker build -t myspringweb .
- docker tag myspringweb $DOCKER_HUB_USERID/myspringweb
- docker push $DOCKER_HUB_USERID/myspringweb
after_script:
- docker logout
only:
- main (or master)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment