Skip to content

Commit

Permalink
fix tags v6
Browse files Browse the repository at this point in the history
  • Loading branch information
TimofeyTst committed Oct 8, 2023
1 parent 8649926 commit 6e67d3a
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
# list of Docker images to use as base name for tags
images: timofeytst/eat-place

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

Expand All @@ -22,17 +32,17 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Get branch name
uses: nelonoel/[email protected]
- run: echo ${BRANCH_NAME}
# - 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
file: Dockerfile.prod
tags: timofeytst/eat-place:${BRANCH_NAME}
- run: echo ${BRANCH_NAME}
# tags: timofeytst/eat-place:${BRANCH_NAME}
tags: ${{ steps.meta.outputs.tags }}


deploy:
Expand Down

0 comments on commit 6e67d3a

Please sign in to comment.