Skip to content
This repository has been archived by the owner on Mar 9, 2024. It is now read-only.

Update README.md

Update README.md #13

Workflow file for this run

name: CI and CD
on:
push:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.12"]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.12'
- name: Install dependencies
run: |
pip install -r user_service/requirements.txt
pip install -r route_waypoint_service/requirements.txt
pip install -r gateway_service/requirements.txt
- name: Run tests
run: |
pytest user_service/tests/
pytest route_waypoint_service/tests/
pytest gateway_service/tests/
- name: Build Docker images
run: |
docker build -t ${{ secrets.DOCKER_REPOSITORY }}:user_service ./user_service
docker build -t ${{ secrets.DOCKER_REPOSITORY }}:route_waypoint_service ./route_waypoint_service
docker build -t ${{ secrets.DOCKER_REPOSITORY }}:gateway_service ./gateway_service
- name: Log in to Docker Hub
run: docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
- name: Push Docker images
run: |
docker push ${{ secrets.DOCKER_REPOSITORY }}:user_service
docker push ${{ secrets.DOCKER_REPOSITORY }}:route_waypoint_service
docker push ${{ secrets.DOCKER_REPOSITORY }}:gateway_service