Skip to content

Commit 5283f37

Browse files
committed
Update deploy.yml
1 parent d84fbb8 commit 5283f37

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ jobs:
8080
host: ${{ secrets.SERVER_IP }}
8181
username: ${{ secrets.SERVER_USER }}
8282
key: ${{ secrets.SERVER_SSH_KEY }}
83+
env:
84+
PACKAGE_TOKEN: ${{ secrets.PACKAGE_TOKEN }}
85+
USERNAME: ${{ github.actor }}
8386
script: |
8487
# Determine environment
8588
if [[ "${GITHUB_REF}" == refs/tags/* ]]; then
@@ -94,7 +97,7 @@ jobs:
9497
echo "🧩 Deploying DEVELOPMENT"
9598
fi
9699
97-
echo "${{ secrets.PACKAGE_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
100+
echo "$PACKAGE_TOKEN" | docker login ghcr.io -u $USERNAME --password-stdin
98101
99102
# Pull latest image
100103
docker pull ghcr.io/050soft/musicbot:$TAG

0 commit comments

Comments
 (0)