Skip to content

Commit ed2df0b

Browse files
committed
syntax fix2
1 parent 8c132d4 commit ed2df0b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ jobs:
3737
# key: ${{ secrets.SSH_PRIVATE_KEY }}
3838
script: |
3939
# Pull the latest image
40-
docker pull ${{ secrets.DOCKER_USERNAME }}/$IMG_NAME:latest
40+
docker pull ${{ secrets.DOCKER_USERNAME }}/${{ env.IMG_NAME }}:latest
4141
4242
# Stop and remove existing container if it exists
43-
docker stop $IMG_NAME || true
44-
docker rm $IMG_NAME || true
43+
docker stop ${{ env.IMG_NAME }} || true
44+
docker rm ${{ env.IMG_NAME }} || true
4545
4646
# Run the new image
47-
docker run -d --name $IMG_NAME ${{ secrets.DOCKER_USERNAME }}/$IMG_NAME:latest
47+
docker run -d --name ${{ env.IMG_NAME }} ${{ secrets.DOCKER_USERNAME }}/${{ env.IMG_NAME }}:latest

0 commit comments

Comments
 (0)