Skip to content

Commit ce63bfd

Browse files
authored
format manual docker deployment tag (#594)
1 parent 474565b commit ce63bfd

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/publish-docker.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,13 @@ jobs:
7272
- name: Checkout
7373
uses: actions/checkout@v4
7474

75+
- name: Extract CLI version from tag
76+
run: echo "CLI_VERSION=$(echo '${{ github.event.inputs.tag }}' | tr -d ' \r\n' | sed 's/^[^0-9]*//')" >> $GITHUB_ENV
77+
7578
- name: Download release binary
7679
run: |
7780
wget --header='Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' \
78-
https://github.com/${{ github.repository }}/releases/download/${{ github.event.inputs.tag }}/railway-${{ github.event.inputs.tag }}-x86_64-unknown-linux-musl.tar.gz -O - | tar xvfz -
81+
https://github.com/${{ github.repository }}/releases/download/v${{ env.CLI_VERSION }}/railway-v${{ env.CLI_VERSION }}-x86_64-unknown-linux-musl.tar.gz -O - | tar xvfz -
7982
8083
- name: Test run the binary
8184
run: ./railway --version
@@ -93,4 +96,4 @@ jobs:
9396
with:
9497
context: .
9598
push: true
96-
tags: ${{ env.IMAGE_BASE_TAG }}:${{ github.event.inputs.tag }}, ${{ env.IMAGE_BASE_TAG }}:latest
99+
tags: ${{ env.IMAGE_BASE_TAG }}:${{ env.CLI_VERSION }}, ${{ env.IMAGE_BASE_TAG }}:latest

0 commit comments

Comments
 (0)