Skip to content

Commit 6ad0457

Browse files
Merge pull request #11 from platzi/amines/10
Create containerDeployment.yml
2 parents fa91edc + 35a7034 commit 6ad0457

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: API Contactos CI/CD
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
7+
env:
8+
IMAGE_BASE_NAME: aminespinoza/apicontactos
9+
10+
jobs:
11+
API_Image:
12+
runs-on: ubuntu-latest
13+
defaults:
14+
run:
15+
working-directory: src/ContactosAPI
16+
steps:
17+
- name: Check out the repo
18+
uses: actions/checkout@v3
19+
20+
- name: Looking for files
21+
run: ls -a
22+
23+
- name: Build Docker NET image
24+
run: |
25+
docker build --platform linux -t $IMAGE_BASE_NAME .

0 commit comments

Comments
 (0)