Skip to content

Commit

Permalink
rework CI
Browse files Browse the repository at this point in the history
  • Loading branch information
F-Node-Karlsruhe committed Jun 25, 2021
1 parent f03a3a0 commit 42c5360
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 5 deletions.
31 changes: 28 additions & 3 deletions .github/workflows/CI_latest.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
name: ghost-iota-pay CI:latest
name: ghost-iota-pay CI

on:
push:
branches: [ main ]
tags:
- 'v*'
paths-ignore:
- 'RERADME.md'
- 'images/**'
- 'ghost-integration/**'
- '.github/**'
pull_request:
branches: [ main ]
paths-ignore:
- 'RERADME.md'
- 'images/**'
- 'ghost-integration/**'
- '.github/**'

jobs:
docker:
Expand All @@ -13,6 +25,17 @@ jobs:
-
name: Checkout
uses: actions/checkout@v2
-
name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
images: fnode/ghost-iota-pay
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
Expand All @@ -21,6 +44,7 @@ jobs:
uses: docker/setup-buildx-action@v1
-
name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
with:
username: fnode
Expand All @@ -30,8 +54,9 @@ jobs:
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: fnode/ghost-iota-pay:latest
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
-
name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
[![GitHub issues](https://img.shields.io/github/issues/F-Node-Karlsruhe/ghost-iota-pay.svg)](https://github.com/F-Node-Karlsruhe/ghost-iota-pay/issues)
**Pay per content in ghost blog with IOTA.**

Test it here: ([blog.f-node.de](https://blog.f-node.de))
Watch it here: ([https://www.youtube.com/watch?v=3XG2W9J3b1A](https://www.youtube.com/watch?v=3XG2W9J3b1A))
Test it here: [blog.f-node.de](https://blog.f-node.de)
Watch it here: [https://www.youtube.com/watch?v=3XG2W9J3b1A](https://www.youtube.com/watch?v=3XG2W9J3b1A)

![How it works](https://raw.githubusercontent.com/F-Node-Karlsruhe/ghost-iota-pay/main/images/flowchart.svg)

Expand Down

0 comments on commit 42c5360

Please sign in to comment.