1
0
mirror of https://github.com/axllent/mailpit.git synced 2025-01-28 03:56:50 +02:00

Use ${{ github.ref_name }} for workflow build tags

This commit is contained in:
Ralph Slooten 2022-10-16 12:12:28 +13:00
parent 70ac9c73ea
commit ec95e58e13
2 changed files with 3 additions and 12 deletions

View File

@ -10,10 +10,6 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3
- name: Get tag
id: tag
uses: dawidd6/action-get-tag@v1
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
@ -32,6 +28,6 @@ jobs:
context: .
platforms: linux/386,linux/amd64,linux/arm,linux/arm64
build-args: |
"VERSION=${{ steps.tag.outputs.tag }}"
"VERSION=${{ github.ref_name }}"
push: true
tags: axllent/mailpit:latest,axllent/mailpit:${{ steps.tag.outputs.tag }}
tags: axllent/mailpit:latest,axllent/mailpit:${{ github.ref_name }}

View File

@ -23,11 +23,6 @@ jobs:
steps:
- uses: actions/checkout@v3
# @TODO: replace deprecated action with ${{ github.ref_name }}
- name: Get tag
id: tag
uses: dawidd6/action-get-tag@v1
# build the assets
- uses: actions/setup-node@v3
with:
@ -49,4 +44,4 @@ jobs:
extra_files: LICENSE README.md
md5sum: false
overwrite: true
ldflags: -w -X "github.com/axllent/mailpit/config.Version=${{ steps.tag.outputs.tag }}"
ldflags: -w -X "github.com/axllent/mailpit/config.Version=${{ github.ref_name }}"