Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move packing inputs archive to separate step #360

Merged
merged 2 commits into from
Sep 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions .github/workflows/build-push-private.yml
Original file line number Diff line number Diff line change
Expand Up @@ -299,16 +299,25 @@ jobs:
echo "full-image-name=$TAGGED_IMAGE"
echo "full-image-name=$TAGGED_IMAGE" >> "$GITHUB_OUTPUT"

- name: Prepare inputs archive
id: prepare-inputs-archive
env:
full_image_name: ${{ steps.export-outputs.outputs.full-image-name }}
run: |
tarfile="$(echo $full_image_name | sed 's:.*/::' | tr ":" "-").tar.gz"
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: |
tarfile="$(echo $full_image_name | sed 's:.*/::' | tr ":" "-").tar.gz"
echo "$tarfile"
tar -cvz -f "$tarfile" pacta-data templates.transition.monitor

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
Loading