Merge pull request #3 from unfernandito/feature/github-action-docker
use repository from ENV
This commit is contained in:
2 files changed
+43
-16
No files matched your search
@@ -1,20 +1,38 @@
|
||||
name: Publish Docker image
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
on:
|
||||
push:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
push_to_registry:
|
||||
name: Push Docker image to GitHub Packages
|
||||
publish:
|
||||
name: Publish Image
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out the repo
|
||||
uses: actions/checkout@v2
|
||||
- name: Push to GitHub Packages
|
||||
uses: docker/build-push-action@v1
|
||||
with:
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
registry: docker.pkg.github.com
|
||||
repository: unfernandito/Superalgos/superalgos
|
||||
tag_with_ref: true
|
||||
|
||||
- id: repository
|
||||
uses: ASzc/change-string-case-action@v1
|
||||
with:
|
||||
string: "${{ github.repository }}/${{ github.event.repository.name }}"
|
||||
- uses: actions/checkout@v2
|
||||
- name: Preparation
|
||||
id: prep
|
||||
run: |
|
||||
REGISTRY="ghcr.io"
|
||||
IMAGE="${REGISTRY}/${{ steps.repository.outputs.lowercase }}"
|
||||
TAGS="${IMAGE}:${{ github.sha }}"
|
||||
if [[ $GITHUB_REF == ref/head/master ]]; then
|
||||
TAGS="${TAGS},${IMAGE}:latest"
|
||||
fi
|
||||
echo ::set-output name=tags::${TAGS}
|
||||
- name: Login in to registry
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ github.token }}
|
||||
- name: Push to registry
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
push: true
|
||||
file: ./Dockerfile
|
||||
tags: ${{ steps.prep.outputs.tags }}
|
||||
@@ -314,6 +314,15 @@ Or follow [Superalgos on Facebook](https://www.facebook.com/superalgos).
|
||||
|
||||
Superalgos is a Community Project built by Contributors for Contributors. Learn [how to become a Contributor](https://superalgos.org/community-contribute.shtml).
|
||||
|
||||
# Docker Image
|
||||
|
||||
If you want to run superalgo over docker platform, you should follow the next steps:
|
||||
|
||||
1. [Install docker](https://docs.docker.com/engine/install/)
|
||||
2. `docker login ghcr.io --username your-github-username --password-stdin`
|
||||
3. `docker run -p 18041:18041 -p 34248 superalgos/superalgos`
|
||||
4. Now you can access to the superalgos UI
|
||||
|
||||
## Top Contributors
|
||||
|
||||
Luis Fernando Molina, Julian Molina, Andreja Cobeljic, Matías Benitez, Ira Miller, Eduardo Remis, Jeff Braun, rico4dev, 9808us, Barry Low, Nikola Bjelogrlic, Hirajin Koizuko, Francisco J. Santillán, Norman, Viktoria B., Guillermo V., Daniel J., Javier A., Gustavo J., Romina GS, Pedro P., Thais M., Andrey M., Loui M., Natalia M., Bashar A., Carlos V., Diego M., CarnivalBen, Sebastian E., Bogdan P., Marko V., Igor S., Niksa K., Rodrigo M., Nicanor M., Alejandro P., Mateo H., Lan T., Leon A., Uroš R., Filip M., Vladimir J. and Pavle B.
|
||||
|
||||
Reference in new issue
Block a user