diff --git a/.github/workflows/publish_image_tag.yml b/.github/workflows/publish_image_tag.yml new file mode 100644 index 0000000..4c64251 --- /dev/null +++ b/.github/workflows/publish_image_tag.yml @@ -0,0 +1,20 @@ +name: Publish Image Using Semver Tag + +on: + push: + tags: + - v* + +jobs: + push: + name: Publish Image using tags + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Push the image on the registry + uses: Ferlab-Ste-Justine/action-push-image@v2 + with: + username: ${{ secrets.FERLAB_DOCKER_HUB_USER }} + password: ${{ secrets.FERLAB_DOCKER_HUB_TOKEN }} + image: ferlabcrsj/sentry-prometheus-exporter + tag_format: "{semver}" \ No newline at end of file