amnezia-vpn / amneziawg-exporter

amneziawg-exporter
GNU General Public License v3.0
2 stars 1 forks source link

Tags, releases and Docker Images #2

Closed shipilovds closed 3 weeks ago

shipilovds commented 1 month ago

done

shipilovds commented 1 month ago

https://github.com/shipilovds/amneziawg-exporter/issues/2

tiaga commented 1 month ago

Let's avoid hardcode and start push Docker Images only if a semver tag was pushed to the repo. So, we should set the corresponding trigger:

on:
    tags:
      - '[0-9]+.[0-9]+.[0-9]+'

and push only if tag was provided:

      - name: Build
        uses: docker/build-push-action@v6
        with:
          push: ${{ contains(github.ref, 'refs/tags/') }} # push if tag was set