We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1532c0 commit 752508cCopy full SHA for 752508c
.github/workflows/build_push.yaml
@@ -42,11 +42,23 @@ jobs:
42
username: ${{ secrets.DOCKERHUB_USERNAME }}
43
password: ${{ secrets.DOCKERHUB_TOKEN }}
44
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
+
57
- name: Build and push
58
uses: docker/build-push-action@v5
59
with:
60
context: .
- tags: arranhs/abs-tract:${{ inputs.tags }}
61
+ tags: ${{ steps.tags.outputs.tags }}
62
platforms: linux/amd64,linux/arm64
63
cache-from: type=gha
64
cache-to: type=gha,mode=max
0 commit comments