Skip to content

Commit

Permalink
fix: Update GitHub Actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
debMan committed Jan 29, 2024
1 parent 15cd3de commit 157c625
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -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 }}

0 comments on commit 157c625

Please sign in to comment.