Skip to content

Commit

Permalink
Fix release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ahobsonsayers committed Apr 29, 2024
1 parent d1532c0 commit 752508c
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/build_push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,23 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Get image tags
id: tags
run: |
IFS=','
read -r -a old_tags <<<"${{ inputs.tags }}"
new_tags=()
for old_tag in "${old_tags[@]}"; do
new_tags+=("arranhs/abs-tract:$old_tag")
done
tags="${new_tags[*]}"
echo "tags=$tags" >>"$GITHUB_OUTPUT"
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
tags: arranhs/abs-tract:${{ inputs.tags }}
tags: ${{ steps.tags.outputs.tags }}
platforms: linux/amd64,linux/arm64
cache-from: type=gha
cache-to: type=gha,mode=max
Expand Down

0 comments on commit 752508c

Please sign in to comment.