Skip to content

Commit 026adaa

Browse files
committed
add latest tag on github action
1 parent f5f2347 commit 026adaa

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ jobs:
2222
- name: Generate tags
2323
run: |
2424
repo=${{ github.repository }};
25-
echo "IMG_TAG=ghcr.io/${repo,,}/5k-dedi:${GITHUB_SHA::7}" >> $GITHUB_ENV
25+
echo "CURR_TAG=ghcr.io/${repo,,}/5k-dedi:${GITHUB_SHA::7}" >> $GITHUB_ENV
26+
echo "LATEST_TAG=ghcr.io/${repo,,}/5k-dedi:latest" >> $GITHUB_ENV
2627
2728
- name: Set up Docker Buildx
2829
uses: docker/setup-buildx-action@v2
@@ -39,4 +40,6 @@ jobs:
3940
with:
4041
context: .
4142
push: true
42-
tags: ${{ env.IMG_TAG }}
43+
tags: |
44+
${{ env.CURR_TAG }}
45+
${{ env.LATEST_TAG }}

readme.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# SCP-5k Dedicated Server For Docker
2+
3+
<br/>
4+
5+
### Usage
6+
7+
[Pull docker image](https://github.com/LightBlueCube/5k-dedi-docker/pkgs/container/5k-dedi-docker%2F5k-dedi)
8+
9+
Enter command
10+
11+
> The text under "<>" meanning you have to replace it by youself according to your needs, and delete "<>"
12+
13+
```bash
14+
docker run --name <any_name> -p <port>:<port> -v <any_path_on_host_for_place_server_files>:"/home/5k/Steam/steamapps/common/SCP Pandemic Dedicated Server" 5k-dedi
15+
```
16+
17+
Add -d if you want it running on background
18+
19+
Add sudo before the command if you arent root user

0 commit comments

Comments
 (0)