fix: version tag

This commit is contained in:
Evans Mike 2023-05-05 12:57:03 +01:00
parent 762be54a37
commit 4aefcaea14

View file

@ -70,11 +70,14 @@ jobs:
- name: Get tag to build
id: tag
run: |
echo "latest=etnperlong/sing-box:latest" >> $GITHUB_OUTPUT
if [[ "${{ matrix.distro }}" == "alpine" && "${{ matrix.buildType }}" == "standard" ]]; then
latest="etnperlong/sing-box:latest"
echo "latest=$latest" >> $GITHUB_OUTPUT
fi
if [[ -z "${{ github.event.inputs.tag }}" ]]; then
echo "versioned=etnperlong/sing-box:${{ github.ref_name }}" >> $GITHUB_OUTPUT
else
if [[ -z "${{ steps.dockerfile.outputs.tagpost }}" ]]; then
if [[ -n "${{ steps.dockerfile.outputs.tagpost }}" ]]; then
echo "versioned=etnperlong/sing-box:${{ github.event.inputs.tag }}-${{ steps.dockerfile.outputs.tagpost }}" >> $GITHUB_OUTPUT
else
echo "versioned=etnperlong/sing-box:${{ github.event.inputs.tag }}" >> $GITHUB_OUTPUT