Skip to content
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
2 changes: 2 additions & 0 deletions .github/workflows/image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,5 @@ jobs:
file: build/fpm.Dockerfile
push: true
tags: ghcr.io/${{ github.repository_owner }}/fpm:latest
cache-from: type=gha
cache-to: type=gha,mode=max
66 changes: 40 additions & 26 deletions .github/workflows/repos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,29 +15,36 @@ jobs:

if: github.event.workflow_run.conclusion == 'success'

permissions:
contents: write
actions: read

steps:

- name: Checkout code
uses: actions/checkout@v6
with:
lfs: true

# Install `2.22.35` until AWS S3 SDK compatibility inconsistencies
# with R2 are resolved: https://www.cloudflarestatus.com/
- name: Install AWS CLI
uses: unfor19/install-aws-cli-action@v1
with:
version: 2.22.35

# Uses AWS CLI preinstalled on ubuntu-latest runners.
- name: Download artifacts
uses: dawidd6/action-download-artifact@v21
with:
workflow: ${{ github.event.workflow.id }}
run_id: ${{ github.event.workflow_run.id }}
path: artifacts
env:
GH_TOKEN: ${{ github.token }}
run: gh run download ${{ github.event.workflow_run.id }} --dir artifacts
Comment thread
tillkruss marked this conversation as resolved.

- name: Get build tag
run: echo "TAG=$(find artifacts -name 'TAG' | head -n 1 | xargs cat)" >> $GITHUB_ENV
run: |
TAG_FILE=$(find artifacts -name 'TAG' | head -n 1)
Comment thread
tillkruss marked this conversation as resolved.
if [ -z "$TAG_FILE" ]; then
echo "No TAG file found in downloaded artifacts" >&2
exit 1
fi
TAG=$(tr -d '[:space:]' < "$TAG_FILE")
if [ -z "$TAG" ]; then
echo "TAG file is empty in downloaded artifacts" >&2
exit 1
fi
echo "TAG=$TAG" >> $GITHUB_ENV

- name: Copy packages
run: |
Expand Down Expand Up @@ -105,29 +112,36 @@ jobs:

if: github.event.workflow_run.conclusion == 'success'

permissions:
contents: write
actions: read

steps:

- name: Checkout code
uses: actions/checkout@v6
with:
lfs: true

# Install `2.22.35` until AWS S3 SDK compatibility inconsistencies
# with R2 are resolved: https://www.cloudflarestatus.com/
- name: Install AWS CLI
uses: unfor19/install-aws-cli-action@v1
with:
version: 2.22.35

# Uses AWS CLI preinstalled on ubuntu-latest runners.
- name: Download artifacts
uses: dawidd6/action-download-artifact@v21
with:
workflow: ${{ github.event.workflow.id }}
run_id: ${{ github.event.workflow_run.id }}
path: artifacts
env:
GH_TOKEN: ${{ github.token }}
run: gh run download ${{ github.event.workflow_run.id }} --dir artifacts
Comment thread
tillkruss marked this conversation as resolved.

- name: Get build tag
run: echo "TAG=$(find artifacts -name 'TAG' | head -n 1 | xargs cat)" >> $GITHUB_ENV
run: |
TAG_FILE=$(find artifacts -name 'TAG' | head -n 1)
Comment thread
tillkruss marked this conversation as resolved.
if [ -z "$TAG_FILE" ]; then
echo "No TAG file found in downloaded artifacts" >&2
exit 1
fi
TAG=$(tr -d '[:space:]' < "$TAG_FILE")
if [ -z "$TAG" ]; then
echo "TAG file is empty in downloaded artifacts" >&2
exit 1
fi
echo "TAG=$TAG" >> $GITHUB_ENV

- name: Copy packages
run: |
Expand Down
16 changes: 2 additions & 14 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,7 @@ jobs:
with:
lfs: true

# Install `2.22.35` until AWS S3 SDK compatibility inconsistencies
# with R2 are resolved: https://www.cloudflarestatus.com/
- name: Install AWS CLI
uses: unfor19/install-aws-cli-action@v1
with:
version: 2.22.35

# Uses AWS CLI preinstalled on ubuntu-latest runners.
- name: Sync repo with R2
env:
R2_ENDPOINT: https://a1220fd38ad4771f7b7b38f5f3c2b00d.r2.cloudflarestorage.com
Expand Down Expand Up @@ -62,13 +56,7 @@ jobs:
with:
lfs: true

# Install `2.22.35` until AWS S3 SDK compatibility inconsistencies
# with R2 are resolved: https://www.cloudflarestatus.com/
- name: Install AWS CLI
uses: unfor19/install-aws-cli-action@v1
with:
version: 2.22.35

# Uses AWS CLI preinstalled on ubuntu-latest runners.
- name: Sync repo with R2
env:
R2_ENDPOINT: https://a1220fd38ad4771f7b7b38f5f3c2b00d.r2.cloudflarestorage.com
Expand Down