-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (33 loc) · 1.03 KB
/
log-metadata.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Log metadata
on:
workflow_call:
inputs:
model:
required: true
type: string
start-time:
required: true
type: string
jobs:
log-metadata:
runs-on: ubuntu-latest
steps:
- name: checkout repo content
uses: actions/checkout@v4 # checkout repo content
- name: setup python
uses: actions/setup-python@v4 # setup python environment
with:
python-version: '3.10'
- name: configure AWS credentials
uses: aws-actions/configure-aws-credentials@master
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: eu-central-1
- name: install venv
run: |
make install-prod
- name: write metadata to s3
run: |
end_time=$(date +%s)
.venv/bin/python3 scripts/write_metadata_to_s3.py ${{ inputs.model }} ${{ inputs.start-time }} $end_time