-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (30 loc) · 886 Bytes
/
docker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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