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

PPNA-666 Add godtools/s3_download/action #55

Merged
merged 4 commits into from
Sep 27, 2023
Merged
Show file tree
Hide file tree
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
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,27 @@ steps:
godtools-key: ${{ secrets.GODTOOLS_KEY }}
```

### Download artifacts

Allows to download artifacts, like EventKeeper's `events`. It requires [setup](#setup) action.

Example usage:

```yaml
---
steps:
- name: Download events
uses: PiwikPRO/actions/godtools/download@master
env:
HTTP_PROXY: ${{ secrets.FORWARD_PROXY_HTTP }}
HTTPS_PROXY: ${{ secrets.FORWARD_PROXY_HTTPS }}
with:
godtools-config: ${{ secrets.GODTOOLS_CONFIG }}
godtools-key: ${{ secrets.GODTOOLS_KEY }}
artifacts: events
ref: master
```

---

## Go
Expand Down
26 changes: 26 additions & 0 deletions godtools/download/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: 'Piwik PRO godtools download'
description: 'Downloads content from artifactory'
inputs:
godtools-config:
required: true
description: godtools encrypted configuration
godtools-key:
required: true
description: godtools encryption key
artifacts:
required: true
description: Type of artifacts to download (events etc.)
ref:
required: false
default: master
description: Revision
runs:
using: "composite"
steps:
- name: Download data fom artifactory
shell: bash
run: |
godtools s3 download ${{ inputs.artifacts }} --ref ${{ inputs.ref }}
env:
GODTOOLS_CONFIG: ${{ inputs.godtools-config }}
GODTOOLS_KEY: ${{ inputs.godtools-key }}