diff --git a/.github/workflows/CI_latest.yml b/.github/workflows/CI_latest.yml index 744cbd8..a3897a6 100644 --- a/.github/workflows/CI_latest.yml +++ b/.github/workflows/CI_latest.yml @@ -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: @@ -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 @@ -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 @@ -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 }} diff --git a/README.md b/README.md index 9b8a40a..b542013 100644 --- a/README.md +++ b/README.md @@ -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)