Skip to content

Commit

Permalink
main.yml build gateway
Browse files Browse the repository at this point in the history
  • Loading branch information
Xenia387 committed Feb 10, 2024
1 parent 0929b16 commit 64e8021
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,29 @@ jobs:
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
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: ./infra/
push: true
tags: ${{ secrets.DOCKER_USERNAME }}/foodgram_gateway:latest

0 comments on commit 64e8021

Please sign in to comment.