-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (33 loc) · 939 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Continuos Integration - CI
on:
push:
branches: [main]
# workflow_run:
# workflows: ["Tests"]
# types:
# - completed
# branches-ignore:
# - "dev"
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# Login Dockerhub
- name: Login Dockerhub
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
run: docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
# API - Docker Image
- name: Build Docker Image (API)
run: |
cd server
docker build -t davilucciola/knockbank-api .
- name: Push Docker Image (API)
run: docker push davilucciola/knockbank-api:latest
# Web - Docker Image
# - name: Build Web Image
# run: |
# cd client
# docker build ./client -t knockbank-web