Skip to content

Commit

Permalink
adding .github for Dockerhub images and directores for Kubernetes
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoOMaia committed Nov 25, 2023
1 parent 275852d commit 01f8c09
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
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
Empty file added Kubernetes/deployment.yaml
Empty file.
Empty file added Kubernetes/persistent.yaml
Empty file.
Empty file added Kubernetes/service.yaml
Empty file.

0 comments on commit 01f8c09

Please sign in to comment.