Skip to content

Commit 752508c

Browse files
committed
Fix release workflow
1 parent d1532c0 commit 752508c

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/build_push.yaml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,23 @@ jobs:
4242
username: ${{ secrets.DOCKERHUB_USERNAME }}
4343
password: ${{ secrets.DOCKERHUB_TOKEN }}
4444

45+
- name: Get image tags
46+
id: tags
47+
run: |
48+
IFS=','
49+
read -r -a old_tags <<<"${{ inputs.tags }}"
50+
new_tags=()
51+
for old_tag in "${old_tags[@]}"; do
52+
new_tags+=("arranhs/abs-tract:$old_tag")
53+
done
54+
tags="${new_tags[*]}"
55+
echo "tags=$tags" >>"$GITHUB_OUTPUT"
56+
4557
- name: Build and push
4658
uses: docker/build-push-action@v5
4759
with:
4860
context: .
49-
tags: arranhs/abs-tract:${{ inputs.tags }}
61+
tags: ${{ steps.tags.outputs.tags }}
5062
platforms: linux/amd64,linux/arm64
5163
cache-from: type=gha
5264
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)