Skip to content

Commit

Permalink
Feature/intentional error test (#2)
Browse files Browse the repository at this point in the history
* Update github-actions fix

* Intentional wrong format for python file

* Revert intentional wrong format for pipeline sucess

* Update github actions pr rules to avoid duplicate runs
  • Loading branch information
san99tiago committed Aug 28, 2023
1 parent 55311b6 commit c641c95
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ name: FastAPI Docker Image Test, Build and Push to DockerHub
on:
push:
branches: [ "main", "feature/**"]
pull_request:
branches: [ "main" ]
branches-ignore: [ "docs" ]
# pull_request:
# branches: [ "main" ]

jobs:

Expand Down Expand Up @@ -71,7 +70,7 @@ jobs:
images: san99tiago/fastapi-docker-github-actions

- name: Login to Docker Hub
if: github.event_name != "pull_request"
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
Expand All @@ -81,6 +80,6 @@ jobs:
uses: docker/build-push-action@v4
with:
context: src
push: ${{ github.event_name != "pull_request" }}
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit c641c95

Please sign in to comment.