From 157c6251aa4bd01eedc2dfcf1c37d7fc11c3eec3 Mon Sep 17 00:00:00 2001 From: MohamadAli Date: Tue, 30 Jan 2024 03:09:23 +0330 Subject: [PATCH] fix: Update GitHub Actions workflow --- .github/workflows/main.yaml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 3a2ed44..5b3afca 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -14,7 +14,8 @@ on: env: REGISTRY: ghcr.io - IMAGE_NAME: ${{ github.repository }} + GHCR_IMAGE_NAME: ${{ github.repository }} + DOCKERHUB_IMAGE_NAME: ${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }} jobs: build-and-push-image: @@ -48,8 +49,8 @@ jobs: id: meta with: images: | - ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - ${{ secrets.DOCKERHUB_USERNAME }}/${{ env.IMAGE_NAME }} + ${{ env.REGISTRY }}/${{ env.GHCR_IMAGE_NAME }} + ${{ env.DOCKERHUB_IMAGE_NAME }} tags: | type=ref,event=branch type=ref,event=pr @@ -71,5 +72,5 @@ jobs: with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - repository: ${{ secrets.DOCKERHUB_USERNAME }}/${{ env.IMAGE_NAME }} - short-description: "This Telegram bot notifies you in whenever a new ad appears in the specified topic" + repository: ${{ env.DOCKERHUB_IMAGE_NAME }} + short-description: ${{ github.event.repository.description }}