Skip to content

Commit 048917b

Browse files
committed
final fix
1 parent 1058d57 commit 048917b

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/docker-publish.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
name: build and push docker image
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
19
jobs:
210
build:
311
runs-on: ubuntu-latest
@@ -24,11 +32,11 @@ jobs:
2432
id: vars
2533
run: echo "sha_short=${GITHUB_SHA::7}" >> $GITHUB_OUTPUT
2634

27-
- name: prepare image name (lowercase!)
35+
- name: prepare image name (lowercase)
2836
id: img
2937
run: |
3038
IMAGE="ghcr.io/${{ github.repository_owner }}/my-app"
31-
echo "name=$(echo $IMAGE | tr '[:upper:]' '[:lower:]')" >> $GITHUB_OUTPUT
39+
echo "name=$(echo "$IMAGE" | tr '[:upper:]' '[:lower:]')" >> "$GITHUB_OUTPUT"
3240
3341
- name: build and push
3442
uses: docker/build-push-action@v6

0 commit comments

Comments
 (0)