SANDRAMSC commited on
Commit
4b40c23
·
unverified ·
1 Parent(s): e1bbb3e

Update ci-cd.yml

Browse files
Files changed (1) hide show
  1. .github/workflows/ci-cd.yml +2 -12
.github/workflows/ci-cd.yml CHANGED
@@ -2,24 +2,14 @@ name: Build and Publish Docker Image to DockerHub
2
 
3
  on:
4
  push:
5
- branches:
6
- - main
7
 
8
  jobs:
9
  build:
10
  runs-on: ubuntu-latest
11
 
12
  steps:
13
- - name: Checkout code
14
- uses: actions/checkout@v4
15
-
16
- - name: Set up Python
17
- uses: actions/setup-python@v5
18
- with:
19
- python-version: 3.9
20
-
21
- - name: Install dependencies
22
- run: pip install -r requirements.txt
23
 
24
  - name: DockerHub Login
25
  uses: docker/login-action@v2.1.0
 
2
 
3
  on:
4
  push:
5
+ branches: ["main"]
 
6
 
7
  jobs:
8
  build:
9
  runs-on: ubuntu-latest
10
 
11
  steps:
12
+ - uses: actions/checkout@v3
 
 
 
 
 
 
 
 
 
13
 
14
  - name: DockerHub Login
15
  uses: docker/login-action@v2.1.0