From 6e67d3ad99d7a1b191bb7d0e48b7d938a5eef87b Mon Sep 17 00:00:00 2001 From: TimofeyTst Date: Sun, 8 Oct 2023 12:24:08 +0300 Subject: [PATCH] fix tags v6 --- .github/workflows/main.yml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index db82318..7fd3bfc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 @@ -22,17 +32,17 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - - name: Get branch name - uses: nelonoel/branch-name@v1.0.1 - - run: echo ${BRANCH_NAME} + # - name: Get branch name + # uses: nelonoel/branch-name@v1.0.1 + # - 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: