Skip to content

Commit 1ff716b

Browse files
Replace static repo owner with variable set to lowercase (#275)
1 parent ce3c919 commit 1ff716b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/release-latest.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ jobs:
3333
run: |
3434
sed -e '/^[[:space:]]*$/d' -e '/[#@]/d' -e 's/\"//g' -e 's/\(^[^=]*\)=\(.*\)/\1="\2"/' template.env > env.hcl
3535
echo "COMMIT_HASH=`echo '${{ github.sha }}' | cut -c 1-7`" >> "$GITHUB_ENV"
36-
echo "NAMESPACE=ghcr.io/misp/misp-docker" >> "$GITHUB_ENV"
36+
OWNER=$(echo "$GITHUB_REPOSITORY_OWNER" | tr '[:upper:]' '[:lower:]')
37+
echo "NAMESPACE=ghcr.io/${OWNER}/misp-docker" >> "$GITHUB_ENV"
3738
3839
- name: Log in to the container registry
3940
uses: docker/login-action@v3

0 commit comments

Comments
 (0)