Skip to content

Commit

Permalink
проверка деплоя
Browse files Browse the repository at this point in the history
  • Loading branch information
ZebraHr committed Sep 19, 2023
1 parent 991f47a commit 298d3d5
Showing 1 changed file with 1 addition and 24 deletions.
25 changes: 1 addition & 24 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,35 +105,12 @@ jobs:
push: true
tags: ${{ secrets.DOCKER_USERNAME }}/foodgram_frontend:latest


# build_infra_and_push_to_docker_hub:
# name: Push infra Docker image to DockerHub
# runs-on: ubuntu-latest
# steps:
# - name: Check out the repo
# uses: actions/checkout@v3
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v2
# - name: Login to Docker
# uses: docker/login-action@v2
# with:
# username: ${{ secrets.DOCKER_USERNAME }}
# password: ${{ secrets.DOCKER_PASSWORD }}
# - name: Push to DockerHub
# uses: docker/build-push-action@v4
# with:
# context: ./nginx/
# push: true
# tags: ${{ secrets.DOCKER_USERNAME }}/foodgram_infra:latest


deploy:
runs-on: ubuntu-latest
needs:
- build_backend_and_push_to_docker_hub
- build_frontend_and_push_to_docker_hub
# - build_infra_and_push_to_docker_hub
if: github.ref == 'refs/heads/main'

steps:
- name: Checkout repo
uses: actions/checkout@v3
Expand Down

0 comments on commit 298d3d5

Please sign in to comment.