Merge pull request #854 from NITEMAN/docker-tagging

Docker tagging & cleanup
This commit is contained in:
Luis Fernando Molina authored and GitHub committed 2021-04-29 09:20:14 -04:00
commit 1313529204
2 files changed
+16 -8

No files matched your search

+5 -2
View File
@@ -12,7 +12,7 @@ jobs:
- id: repository
uses: ASzc/change-string-case-action@v1
with:
string: "${{ github.repository }}/${{ github.event.repository.name }}"
string: "${{ github.repository }}"
- uses: actions/checkout@v2
- name: Preparation
id: prep
@@ -20,9 +20,12 @@ jobs:
REGISTRY="ghcr.io"
IMAGE="${REGISTRY}/${{ steps.repository.outputs.lowercase }}"
TAGS="${IMAGE}:${{ github.sha }}"
if [[ $GITHUB_REF == ref/head/master ]]; then
if [[ $GITHUB_REF == refs/heads/master ]]; then
TAGS="${TAGS},${IMAGE}:latest"
fi
if [[ $GITHUB_REF == refs/heads/develop ]]; then
TAGS="${TAGS},${IMAGE}:develop"
fi
echo ::set-output name=tags::${TAGS}
- name: Login in to registry
uses: docker/login-action@v1
+11 -6
View File
@@ -224,16 +224,21 @@ If you wish to run Superalgos over docker platform, follow these steps.
Follow the link to [install docker](https://docs.docker.com/engine/install/).
## 2. Login and Run
## 2. Run
```
docker login ghcr.io --username your-github-username --password-stdin
```
```
docker run -p 18041:18041 -p 34248 superalgos/superalgos
docker run \
-d \
--rm \
--name superalgos \
-p 18041:18041 \
-p 34248:34248 \
ghcr.io/superalgos/superalgos:latest
```
Now you can access to the Superalgos UI.
Now you can access to the Superalgos UI at http://127.0.0.1:34248
When you're done just exec `docker kill superalgos`
**Note:** This has not been extensively tested yet. If you run into troubles, please contact us at the [Superalgos Support Group](https://t.me/superalgossupport).