Add instructions to wait for questions to appear #345
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy question service | |
on: | |
push: | |
branches: ["master"] | |
pull_request: | |
branches: ["master"] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
MONGO_CONNECTION_STRING: ${{ secrets.MONGO_CONNECTION_STRING }} | |
PORT: 8080 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Build the Docker image | |
run: docker build -t question-service -f backend/question-service/Dockerfile backend/question-service | |
- name: Run the Docker container with MongoDB | |
run: | | |
docker run -e MONGO_CONNECTION_STRING -e PORT -p $PORT:8080 -d question-service |