diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 05298e1a..3932af10 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,16 +12,13 @@ on: type: boolean required: false default: false - push: jobs: build-and-push: runs-on: ubuntu-latest env: DOCKER_ORGANIZATION_NAME: memgraph - DOCKER_REPOSITORY_NAME: mgconsole-test - VERSION: ${{ github.event.inputs.version || '0.0.1' }} - FORCE_RELEASE: ${{ github.event.inputs.force_release || 'true' }} + DOCKER_REPOSITORY_NAME: mgconsole steps: - name: Checkout repository @@ -38,11 +35,11 @@ jobs: - name: Check if specified version is already pushed run: | - EXISTS=$(docker manifest inspect $DOCKER_ORGANIZATION_NAME/$DOCKER_REPOSITORY_NAME:${{ env.VERSION }} > /dev/null; echo $?) + EXISTS=$(docker manifest inspect ${{ env.DOCKER_ORGANIZATION_NAME }}/${{ env.DOCKER_REPOSITORY_NAME }}:${{ github.event.inputs.version }} > /dev/null; echo $?) echo $EXISTS if [[ ${EXISTS} -eq 0 ]]; then echo 'The specified version has been already released to DockerHub.' - if [[ ${{ env.FORCE_RELEASE }} == 'true' ]]; then + if [[ ${{ github.event.inputs.force_release }} == 'true' ]]; then echo 'Forcing the release!' else echo 'Stopping the release!' @@ -58,11 +55,11 @@ jobs: context: . push: true tags: | - ${{ env.DOCKER_ORGANIZATION_NAME }}/${{ env.DOCKER_REPOSITORY_NAME }}:${{ env.VERSION }} + ${{ env.DOCKER_ORGANIZATION_NAME }}/${{ env.DOCKER_REPOSITORY_NAME }}:${{ github.event.inputs.version }} ${{ env.DOCKER_ORGANIZATION_NAME }}/${{ env.DOCKER_REPOSITORY_NAME }}:latest platforms: linux/amd64,linux/arm64 - name: Verify Docker image run: | - docker run --rm $DOCKER_ORGANIZATION_NAME/$DOCKER_REPOSITORY_NAME:${{ env.VERSION }} --version \ No newline at end of file + docker run --rm $DOCKER_ORGANIZATION_NAME/$DOCKER_REPOSITORY_NAME:${{ github.event.inputs.version }} --version \ No newline at end of file diff --git a/README.md b/README.md index 83ec55b9..5bcdd981 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,19 @@ database. mgconsole + +## Running mgconsole + +For MacOs and Windows users, there is a prebuilt version of mgconsole available on [Memgraph download hub](https://memgraph.com/download), Linux users need to build native version. + +There is also a docker version of the same container available on the [Docker Hub](https://hub.docker.com/repository/docker/memgraph/mgconsole/general). + +You can start `mgconsole` locally by running the following command: + +``` +docker run -it memgraph/mgconsole:latest +``` + ## Building and installing To build and install mgconsole from source you will need: