Skip to content

Commit

Permalink
Update CI and README.
Browse files Browse the repository at this point in the history
  • Loading branch information
antejavor committed Sep 16, 2024
1 parent 9868f7c commit b9db078
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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!'
Expand All @@ -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
docker run --rm $DOCKER_ORGANIZATION_NAME/$DOCKER_REPOSITORY_NAME:${{ github.event.inputs.version }} --version
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,19 @@ database.

<img width="630" alt="mgconsole" src="https://github.com/memgraph/mgconsole/assets/4950251/b7ce1a0d-097c-4a2f-81b5-4049a307668b">


## 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:
Expand Down

0 comments on commit b9db078

Please sign in to comment.