Skip to content

Commit 0499352

Browse files
committed
fix workflow issue
1 parent 2104a56 commit 0499352

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/docker-publish.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ on:
99

1010
env:
1111
REGISTRY: ghcr.io
12-
IMAGE_NAME: mcstatusbot
1312

1413
jobs:
1514
build-and-push:
@@ -22,6 +21,9 @@ jobs:
2221
- name: Checkout repository
2322
uses: actions/checkout@v3
2423

24+
- name: Set image name lowercase
25+
run: echo "IMAGE_NAME=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
26+
2527
- name: Log into registry ${{ env.REGISTRY }}
2628
uses: docker/login-action@v2
2729
with:
@@ -48,6 +50,12 @@ jobs:
4850
id: get_version
4951
run: echo "VERSION=$(cat VERSION)" >> $GITHUB_ENV
5052

53+
- name: Debug image name
54+
run: |
55+
echo "IMAGE_NAME: ${{ env.IMAGE_NAME }}"
56+
echo "REGISTRY: ${{ env.REGISTRY }}"
57+
echo "Full image path: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}"
58+
5159
- name: Build and push Docker image
5260
uses: docker/build-push-action@v3
5361
with:

0 commit comments

Comments
 (0)