Skip to content

Commit

Permalink
Add docker build gateway
Browse files Browse the repository at this point in the history
  • Loading branch information
AnnaMihailovna committed Aug 25, 2023
1 parent 71526bd commit 84cd2a3
Showing 1 changed file with 26 additions and 7 deletions.
33 changes: 26 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,30 @@ jobs:
cd frontend/
npm run test
build_frontend_and_push_to_docker_hub:
name: Push frontend Docker image to DockerHub
# build_frontend_and_push_to_docker_hub:
# name: Push frontend Docker image to DockerHub
# runs-on: ubuntu-latest
# needs: frontend_tests
# 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 }}/recipebook_frontend:latest

build_gateway_and_push_to_docker_hub:
name: Push gateway Docker image to DockerHub
runs-on: ubuntu-latest
needs: frontend_tests
steps:
- name: Check out the repo
uses: actions/checkout@v3
Expand All @@ -130,8 +150,7 @@ jobs:
- name: Push to DockerHub
uses: docker/build-push-action@v4
with:
context: ./frontend/
context: ./infra/
push: true
tags: ${{ secrets.DOCKER_USERNAME }}/recipebook_frontend:latest


# Тут вместо username должен быть ваш логин на Docker Hub
tags: ${{ secrets.DOCKER_USERNAME }}/recipebook_nginx:latest

0 comments on commit 84cd2a3

Please sign in to comment.