action: testing #10
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: GitHub Actions Demo | |
on: [push] | |
jobs: | |
Explore-GitHub-Actions: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: docker build -t ml_model . | |
- run: docker tag ml_model xcosmicotter/mlops_tp1 | |
- run: docker login -p ${{secrets.SECRET_MLOPS_TP1}} | |
- run: docker push xcosmicotter/mlops_tp1 | |
- run: ssh ubuntu@17.2.2.1 "docker compose pull xcosmicotter/mlops_tp1" | |
- run: "(re)start container" | |