[GH-ISSUE #2] Tags, releases and Docker Images #3

Closed
opened 2026-10-13 21:12:22 +00:00 by bsakaguchi · 3 comments
Owner

Originally created by @shipilovds on GitHub (Jul 16, 2024).
Original GitHub issue: https://github.com/amnezia-vpn/amneziawg-exporter/issues/2

Originally created by @shipilovds on GitHub (Jul 16, 2024). Original GitHub issue: https://github.com/amnezia-vpn/amneziawg-exporter/issues/2
Author
Owner

@shipilovds commented on GitHub (Jul 16, 2024):

done

<!-- gh-comment-id:2231970542 --> @shipilovds commented on GitHub (Jul 16, 2024): done
Author
Owner

@shipilovds commented on GitHub (Jul 16, 2024):

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

<!-- gh-comment-id:2231971850 --> @shipilovds commented on GitHub (Jul 16, 2024): https://github.com/shipilovds/amneziawg-exporter/issues/2
Author
Owner

@tiaga commented on GitHub (Jul 22, 2024):

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
<!-- gh-comment-id:2243221868 --> @tiaga commented on GitHub (Jul 22, 2024): 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 ```
Sign in to join this conversation.
No labels
bug
minor
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
amnezia-vpn/amneziawg-exporter#3
No description provided.