Skip to content

Commit

Permalink
🐛 fix: container image name
Browse files Browse the repository at this point in the history
Signed-off-by: Muhammed Hussein Karimi <[email protected]>
  • Loading branch information
mhkarimi1383 committed Jun 7, 2024
1 parent 48b9fea commit 1cecc15
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/image-publish.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: docker-publish
name: image-publish

on:
push:
Expand All @@ -13,7 +13,7 @@ env:
REGISTRY: ghcr.io

jobs:
docker-build:
build:
runs-on: ubuntu-latest
continue-on-error: false

Expand All @@ -31,11 +31,16 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- id: image_name_generator
uses: ASzc/change-string-case-action@v6
with:
string: ${{ env.IMAGE_NAME }}

- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
images: ${{ env.REGISTRY }}/${{ steps.image_name_generator.outputs.lowercase }}

- name: Build and push Docker image
id: build-and-push-release
Expand All @@ -47,5 +52,5 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
push: true
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}
${{ env.REGISTRY }}/${{ steps.image_name_generator.outputs.lowercase }}:latest
${{ env.REGISTRY }}/${{ steps.image_name_generator.outputs.lowercase }}:${{ github.ref_name }}

0 comments on commit 1cecc15

Please sign in to comment.