Skip to content

Commit

Permalink
убрал лишнее.
Browse files Browse the repository at this point in the history
  • Loading branch information
sergey-xx committed Nov 9, 2023
1 parent bdeece2 commit 76bfa02
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 10,560 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,25 +62,25 @@ jobs:
push: true
tags: ${{ secrets.DOCKER_USERNAME }}/foodgram_backend:latest

build_frontend_and_push_to_docker_hub:
name: Push frontend 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: ./frontend/
push: true
tags: ${{ secrets.DOCKER_USERNAME }}/foodgram_frontend:latest
# build_frontend_and_push_to_docker_hub:
# name: Push frontend 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: ./frontend/
# push: true
# tags: ${{ secrets.DOCKER_USERNAME }}/foodgram_frontend:latest

build_gateway_and_push_to_docker_hub:
name: Push gateway Docker image to DockerHub
Expand All @@ -106,7 +106,7 @@ jobs:
runs-on: ubuntu-latest
needs:
- build_and_push_to_docker_hub
- build_frontend_and_push_to_docker_hub
# - build_frontend_and_push_to_docker_hub
- build_gateway_and_push_to_docker_hub
steps:
- name: Checkout repo
Expand Down
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ coverage.xml
local_settings.py
db.sqlite3
db.sqlite3-journal
db*.sqlite3
db.json

# Flask stuff:
instance/
Expand Down Expand Up @@ -160,4 +162,7 @@ yarn-debug.log*
yarn-error.log*

# static
static/
static/

# frontend
frontend/
3 changes: 2 additions & 1 deletion backend/.dockerignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
venv
.git
db.sqlite3
.env
.env
db copy.sqlite3
1 change: 0 additions & 1 deletion backend/db.json

This file was deleted.

1 change: 0 additions & 1 deletion backend/mydata.json

This file was deleted.

Loading

0 comments on commit 76bfa02

Please sign in to comment.