Skip to content

Commit

Permalink
Branch name added
Browse files Browse the repository at this point in the history
  • Loading branch information
TimofeyTst committed Oct 8, 2023
1 parent be6045a commit 256689c
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,24 +34,27 @@ jobs:
needs: build
runs-on: ubuntu-latest
steps:
-
name: Set up QEMU
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to Docker Hub

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push

- name: Get branch name
uses: nelonoel/[email protected]
- run: echo ${BRANCH_NAME}

- name: Build and push
uses: docker/build-push-action@v5
with:
push: true
tags: eat-place/${BRANCH_NAME}:latest
tags: eat-place/web_ui/${BRANCH_NAME}:latest

deploy:
needs: docker
Expand Down

0 comments on commit 256689c

Please sign in to comment.