This repository has been archived by the owner on Apr 27, 2024. It is now read-only.
Merge pull request #124 from g12-4soat/Deamorim-patch-1 #249
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: Build API Docker Image | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
pull_request: | |
branches: | |
- main | |
- develop | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Docker | |
uses: docker/setup-buildx-action@v1 | |
- name: Build Docker Image | |
run: | | |
cd src/TechLanches | |
docker build -f Dockerfile.API -t techlanches-api-image:latest . --no-cache | |
- name: Clean up | |
run: docker system prune -af |