CI: smtp server now started as a command

This commit is contained in:
realaravinth 2021-06-30 22:44:06 +05:30
parent 8f0c4c093b
commit 46098ec85b
No known key found for this signature in database
GPG key ID: AD9F0F08E855ED88
2 changed files with 22 additions and 16 deletions

View file

@ -36,14 +36,14 @@ jobs:
image: mcaptcha/cache
ports:
- 6379:6379
smtp:
image: maildev/maildev
ports:
- 10025:1025
- 1080:1080
env:
MAILDEV_INCOMING_USER: admin
MAILDEV_INCOMING_PASS: password
# smtp:
# image: maildev/maildev
# ports:
# - 10025:1025
# - 1080:1080
# env:
# MAILDEV_INCOMING_USER: admin
# MAILDEV_INCOMING_PASS: password
steps:
- uses: actions/checkout@v2
@ -61,6 +61,9 @@ jobs:
with:
node-version: '14.x'
- name: start smtp server
run: docker run -d -p 1080:1080 -p 10025:1025 maildev/maildev --incoming-user admin --incoming-pass password
- name: Install JavaScript Dependencies
run: yarn install

View file

@ -38,14 +38,14 @@ jobs:
image: mcaptcha/cache
ports:
- 6379:6379
smtp:
image: maildev/maildev
ports:
- 10025:1025
- 1080:1080
env:
MAILDEV_INCOMING_USER: admin
MAILDEV_INCOMING_PASS: password
# smtp:
# image: maildev/maildev
# ports:
# - 10025:1025
# - 1080:1080
# env:
# MAILDEV_INCOMING_USER: admin
# MAILDEV_INCOMING_PASS: password
steps:
- uses: actions/checkout@v2
@ -63,6 +63,9 @@ jobs:
with:
node-version: '14.x'
- name: start smtp server
run: docker run -d -p 1080:1080 -p 10025:1025 maildev/maildev --incoming-user admin --incoming-pass password
- name: Install JavaScript Dependencies
run: yarn install