Update README.md #6
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: Continuos Integration - CI | |
on: | |
push: | |
branches: [main] | |
jobs: | |
build: | |
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 |