Team Ai
Apppublic

rustysface/devops-practice

sourceHugging Faceupdated 10mo agoView on Hugging Face
0likes
ci.yml26 linesDownload Raw Back to workflows
1name: CI Pipeline2 3on:4  push:5    branches: [main]6  pull_request:7    branches: [main]8 9jobs:10  build:11    runs-on: ubuntu-latest12 13    steps:14      - name: Checkout code15        uses: actions/checkout@v416 17      - name: Build Docker image18        run: docker build -t devops-app .19 20      - name: Run container and test21        run: |22          docker run -d -p 5000:5000 --name test-container devops-app23          sleep 524          curl http://localhost:5000 | grep "Hello"25          docker stop test-container26