Skip to content

Check if an email address exists without sending any email, written in Rust. Comes with a ⚙️ HTTP backend.

ci: Add github action to publish to docker on tag (#236)

Amaury Martiny8c0a3bcc5f46
diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml
index f648d781..f88d5f4d 100644
--- a/.github/workflows/pr.yml
+++ b/.github/workflows/pr.yml
@@ -1,9 +1,9 @@
# Based on https://github.com/actions-rs/meta/blob/master/recipes/quickstart.md
-on: [pull_request]
-
name: pr
+on: [pull_request]
+
jobs:
check:
runs-on: ubuntu-latest
diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml
new file mode 100644
index 00000000..90db0576
--- /dev/null
+++ b/.github/workflows/tag.yml
@@ -0,0 +1,22 @@
+name: tag
+
+on:
+ push:
+ tags:
+ - "v*.*.*"
+
+jobs:
+ docker-publish:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@master
+ - name: Set GITHUB_TAG env
+ id: vars
+ run: echo ::set-output name=GITHUB_TAG::${GITHUB_REF:10} # Remove /refs/head/
+ - name: Publish to Registry
+ uses: elgohr/Publish-Docker-Github-Action@master
+ with:
+ name: amaurymartiny/check-if-email-exists
+ username: ${{ secrets.DOCKER_USERNAME }}
+ password: ${{ secrets.DOCKER_PASSWORD }}
+ tags: "latest,${{ steps.vars.outputs.GITHUB_TAG }}"