Skip to content

Commit

Permalink
Merge pull request #126 from oduwsdl/publish
Browse files Browse the repository at this point in the history
Publish Docker image to GitHub Package Registry
  • Loading branch information
ibnesayeed authored Mar 6, 2020
2 parents 55ad049 + 13bbef5 commit 7ea353f
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 1 deletion.
38 changes: 38 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Publish Docker Images

on:
push:
branches:
- master
release:
types:
- published

jobs:
publish-master:
runs-on: ubuntu-18.04
if: github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@master
- name: Build and Publish master
uses: VaultVulp/gp-docker-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
image-name: memgator
image-tag: master
publish-release:
runs-on: ubuntu-18.04
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@master
- name: Build and Publish latest
uses: VaultVulp/gp-docker-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
image-name: memgator
- name: Build and Publish versioned
uses: VaultVulp/gp-docker-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
image-name: memgator
extract-git-tag: true
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,24 @@ Depending on the machine and operating system download appropriate binary from t

## Running as a Docker Container

The first command below is not necessary, but it allows pulling the latest version of the MemGator Docker image.
Build a Docker image locally from the source.

```
$ git clone https://github.com/oduwsdl/MemGator.git
$ cd MemGator
$ docker image build -t oduwsdl/memgator .
```

Alternatively, pull a published image from one of the two Docker image registries below:

```
$ docker image pull docker.pkg.github.com/oduwsdl/memgator/memgator
$ docker image pull oduwsdl/memgator
```

Run MemGator with various options inside a Docker container.

```
$ docker container run -it --rm oduwsdl/memgator -h
$ docker container run -it --rm oduwsdl/memgator [options] {URI-R}
$ docker container run -it --rm oduwsdl/memgator [options] {URI-R} {YYYY[MM[DD[hh[mm[ss]]]]]}
Expand Down

0 comments on commit 7ea353f

Please sign in to comment.