1
0

feat: add command for distro-related helpers

This commit is contained in:
2023-05-15 10:35:07 +00:00
parent 5e11c1939d
commit 6c1f9f8606
3 changed files with 13 additions and 7 deletions

View File

@ -22,20 +22,20 @@ jobs:
run: go build
- name: Cache
run: ./out-of-tree --log-level=trace debian cache --path=/home/runner/debian.cache
run: ./out-of-tree --log-level=trace distro debian cache --path=/home/runner/debian.cache
- name: Install s3cmd
run: sudo apt install s3cmd
- name: Upload cache
run: s3cmd put --acl-public /home/runner/debian.cache s3://out-of-tree/1.0.0/ --host=fra1.digitaloceanspaces.com --host-bucket='%(bucket)s.fra1.digitaloceanspaces.com' --access_key=${{ secrets.DIGITALOCEAN_SPACES_ACCESS_KEY }} --secret_key=${{ secrets.DIGITALOCEAN_SPACES_SECRET_KEY }}
- name: Archive cache
uses: actions/upload-artifact@v3
with:
name: debian-cache
path: /home/runner/debian.cache
- name: Upload cache
run: s3cmd put --acl-public /home/runner/debian.cache s3://out-of-tree/1.0.0/ --host=fra1.digitaloceanspaces.com --host-bucket='%(bucket)s.fra1.digitaloceanspaces.com' --access_key=${{ secrets.DIGITALOCEAN_SPACES_ACCESS_KEY }} --secret_key=${{ secrets.DIGITALOCEAN_SPACES_SECRET_KEY }}
- name: Archive logs
if: always()
uses: actions/upload-artifact@v3