Skip to content

Commit

Permalink
publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Vlad Batushkov authored and Vlad Batushkov committed Jan 2, 2021
1 parent a22181e commit 62f5f0f
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.vscode
bin
obj
obj
.DS_Store
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# strazh
Your code - is your Knowledge Graph

__WIP__

Release:

1.0.0-alpha < 1.0.0-alpha.1 < 1.0.0-alpha.beta < 1.0.0-beta < 1.0.0-beta.2 < 1.0.0-beta.11 < 1.0.0-rc.1 < 1.0.0

### docker

**Dockerfile**
Expand Down
9 changes: 3 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@ version: '3'
services:

strazh:
build:
context: .
dockerfile: ./Dockerfile
image: strazh:dev
container_name: strazh_dev
image: vladbatushkov/strazh:1.0.0-alpha
container_name: strazh
network_mode: host
volumes:
- ./Strazh:/dest
Expand All @@ -17,7 +14,7 @@ services:

neo4j:
image: neo4j:4.2
container_name: strazh_neo4j_dev
container_name: strazh_neo4j
restart: unless-stopped
ports:
- 7474:7474
Expand Down
18 changes: 18 additions & 0 deletions workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Publish Strazh Docker image
on:
release:
types: [published]
jobs:
push_to_registry:
name: Push Strazh Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Push to Docker Hub
uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_PWD }}
repository: vladbatushkov/strazh
tag_with_ref: true

0 comments on commit 62f5f0f

Please sign in to comment.