Skip to content

Update ci.yml Dockerfile #3

Update ci.yml Dockerfile

Update ci.yml Dockerfile #3

Workflow file for this run

name: Build FastAPI Docker Image and Push to DockerHub
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v3
# TODO: Add testing
docker:
needs: test
runs-on: ubuntu-latest
steps:
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
with:
context: .
file: ./src/Dockerfile
push: true
tags: san99tiago/fastapi-docker-github-actions:latest