mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-08 14:43:24 +00:00
chore(ci): use docker image and trigger on main branch"
This commit is contained in:
2
.github/workflows/CD.yml
vendored
2
.github/workflows/CD.yml
vendored
@@ -3,7 +3,7 @@ name: CD
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- test_cd
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
push_image_to_docker_hub:
|
push_image_to_docker_hub:
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ volumes:
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
mylinks_db:
|
mylinks_db:
|
||||||
|
container_name: MyLinksDB
|
||||||
image: mysql:latest
|
image: mysql:latest
|
||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
@@ -17,10 +18,11 @@ services:
|
|||||||
mylinks:
|
mylinks:
|
||||||
restart: always
|
restart: always
|
||||||
container_name: MyLinks
|
container_name: MyLinks
|
||||||
build:
|
image: sonny93/my-links:latest
|
||||||
context: .
|
# build:
|
||||||
|
# context: .
|
||||||
ports:
|
ports:
|
||||||
- 3000:3000
|
- 127.0.0.1:5000:3000
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|||||||
Reference in New Issue
Block a user