Skip to content

Commit

Permalink
Move packing inputs archive to separate step
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexAxthelm committed Sep 24, 2024
1 parent bb969d1 commit cc51bf7
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/build-push-private.yml
Original file line number Diff line number Diff line change
Expand Up @@ -299,16 +299,26 @@ jobs:
echo "full-image-name=$TAGGED_IMAGE"
echo "full-image-name=$TAGGED_IMAGE" >> "$GITHUB_OUTPUT"
- name: Export inputs archive
uses: azure/CLI@v2
- name: Prepare inputs archive
id: prepare-inputs-archive
env:
full_image_name: ${{ steps.export-outputs.outputs.full-image-name }}
with:
inlineScript: |
tarfile="$(echo $full_image_name | sed 's:.*/::' | tr ":" "-").tar.gz"
echo "$tarfile"
tar -cvz -f "$tarfile" pacta-data templates.transition.monitor
echo "$tarfile"
echo "input-tar=$tarfile"
echo "input-tar=$tarfile" >> "$GITHUB_OUTPUT"
- name: Export inputs archive
uses: azure/CLI@v2
env:
full_image_name: ${{ steps.export-outputs.outputs.full-image-name }}
tarfile: ${{ steps.prepare-inputs-archive.outputs.input-tar }}
with:
inlineScript: |
upload_container="https://pactadatadev.blob.core.windows.net/ghactions-workflow-transition-monitor-input-pacta-data"
destination_path="$upload_container/$tarfile"
echo "$destination_path"
Expand Down

0 comments on commit cc51bf7

Please sign in to comment.