Commit 988e425 1 parent 20b2546 commit 988e425 Copy full SHA for 988e425
File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 28
28
key : ${{ secrets.DROPLET_KEY }}
29
29
script : |
30
30
# Check if previous container exists and is running (based on name)
31
- existing_container_id=$(docker ps -aqf "name=$container_name ")
31
+ existing_container_id=$(docker ps -aqf "name=trumpee-${{ env.lowercase_repo_name }}-${{ github.event.inputs.image_tag }} ")
32
32
if [ -n "$existing_container_id" ]; then
33
- echo "Stopping existing container: $container_name "
33
+ echo "Stopping existing container: trumpee-${{ env.lowercase_repo_name }}-${{ github.event.inputs.image_tag }} "
34
34
docker stop $existing_container_id
35
35
docker rm $existing_container_id
36
36
fi
45
45
echo "Running container: trumpee-${{ env.lowercase_repo_name }}:${{ github.event.inputs.image_tag }}"
46
46
echo "Container name: $safe_container_name"
47
47
docker run -d \
48
+ -p 22001:80 \
48
49
--restart unless-stopped \
49
50
--name $safe_container_name \
50
51
ghcr.io/trumpee/trumpee-${{ env.lowercase_repo_name }}:${{ github.event.inputs.image_tag}}
You can’t perform that action at this time.
0 commit comments