Skip to content
This repository was archived by the owner on Nov 16, 2022. It is now read-only.

Commit a6acc90

Browse files
committed
Merged remote
2 parents 0c0bb4a + 1ba38a2 commit a6acc90

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.github/workflows/docker-tag.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ jobs:
1212
steps:
1313
- name: checkout code
1414
uses: actions/checkout@v2
15+
- name: Branch name
16+
id: branch_name
17+
run: |
18+
echo ::set-output name=SOURCE_NAME::${GITHUB_REF#refs/*/}
19+
echo ::set-output name=SOURCE_BRANCH::${GITHUB_REF#refs/heads/}
20+
echo ::set-output name=SOURCE_TAG::${GITHUB_REF#refs/tags/}
1521
- name: Login to DockerHub
1622
uses: docker/login-action@v1
1723
with:
@@ -33,6 +39,6 @@ jobs:
3339
- name: build the image
3440
run: |
3541
docker buildx build \
36-
--tag freetakteam/freetakserver:${{ github.sha }} \
42+
--tag freetakteam/freetakserver:${{ steps.branch_name.outputs.SOURCE_TAG }} \
3743
--platform linux/amd64,linux/arm/v7,linux/arm64 . --push
3844

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ We do not have a latest tag currently so you will need to use `freetakteam/freet
1010
## Usage
1111
When using this docker container it is suggested that you use the `--restart unless-stopped` flag as shown in the examples. This will enure that the service automatically starts with the host and will restart if it encounters an error and crashes. The port mappings in the examples are required to make the service accessable to hosts. All environment variables are optional. All data is stored in a single directory for ease of persistent data between container versions.
1212

13+
```bash
14+
sudo docker run -d -p 8080:8080/tcp -p 8087:8087/tcp -e FTS_CONNECTION_MESSAGE="Server Connection Message" -v fts_data:/data --name fts --restart unless-stopped freetakteam/freetakserver:1.1.2
15+
```
16+
1317
### Ports
1418
The docker image runs the ports on the same defaults as FreeTAKServer. You can use the `-e` flag to map these ports to different ports or to run multiple FreeTAKServer's concurrently on the same host.
1519

0 commit comments

Comments
 (0)