Skip to content

Commit

Permalink
Update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ahobsonsayers committed Sep 27, 2024
1 parent 9824328 commit 64de554
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/build_push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,14 @@ jobs:
id: tags
run: |
IFS=','
read -r -a old_tags <<<"${{ inputs.tags }}"
new_tags=()
for old_tag in "${old_tags[@]}"; do
new_tags+=("arranhs/twitchets:$old_tag")
read -r -a tags <<<"${{ inputs.tags }}"
full_tags=()
for tag in "${tags[@]}"; do
full_tags+=("arranhs/twitchets:$tag")
done
tags="${new_tags[*]}"
echo "tags=$tags" >>"$GITHUB_OUTPUT"
echo "tags=${full_tags[*]}" >>"$GITHUB_OUTPUT"
- name: Build and push
uses: docker/build-push-action@v5
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,5 @@ jobs:
uses: ./.github/workflows/build_push.yaml
with:
commit: ${{ github.sha }}
tags: develop
tags: develop,${{ github.sha }}
secrets: inherit

0 comments on commit 64de554

Please sign in to comment.