adding kubernets yaml and fix to persist the container #2
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: CI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
push_to_registry: | |
name: Push Docker images | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check repository | |
uses: actions/checkout@v3 | |
- name: User and Token for Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.CLOUDTP2_USERNAME }} | |
password: ${{ secrets.CLOUDTP2_TOKEN }} | |
- name: Build and Push image to change Machine Learning container | |
uses: docker/build-push-action@v4 | |
with: | |
context: Train_model/ | |
push: true | |
tags: leoomaia/ml_cloud | |
- name: Build and push Docker image for Rest_API server | |
uses: docker/build-push-action@v4 | |
with: | |
context: Rest_API/ | |
push: true | |
tags: leoomaia/server_cloud |