Skip to content

Commit

Permalink
Ensure we upload all/noarch packages to S3.
Browse files Browse the repository at this point in the history
  • Loading branch information
skyzyx committed Apr 10, 2024
1 parent 96e8dfd commit 6fcf015
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/generate-apk-meta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ permissions: read-all
jobs:
generate:
runs-on: ubuntu-latest
name: Mount s3fs
name: s3fs
strategy:
fail-fast: false

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/generate-deb-meta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ permissions: read-all
jobs:
generate:
runs-on: ubuntu-latest
name: Mount s3fs
name: s3fs
strategy:
fail-fast: false

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/generate-rpm-meta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ permissions: read-all
jobs:
generate:
runs-on: ubuntu-latest
name: Mount s3fs
name: s3fs
strategy:
fail-fast: false

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/rebuild-all-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ permissions: read-all
jobs:
generate:
runs-on: ubuntu-latest
name: Docker build
name: "🛠️ Generate"
permissions:
packages: write
contents: read
Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: "📦 Build the Docker image (multiarch)"
- name: "Build the Docker image (multiarch)"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/rebuild-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ permissions: read-all
jobs:
generate:
runs-on: ubuntu-latest
name: Build
name: "🛠️ Generate"
permissions:
packages: write
contents: read
Expand Down Expand Up @@ -101,7 +101,7 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: "📦 Build the Docker image (multiarch)"
- name: "Build the Docker image (multiarch)"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scorecards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ permissions: read-all

jobs:
analysis:
name: Scorecard analysis
name: 🔐 Scorecard analysis
runs-on: ubuntu-latest
permissions:
# Needed to upload the results to code-scanning dashboard.
Expand Down
15 changes: 14 additions & 1 deletion .github/workflows/upload-to-s3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ permissions: read-all
jobs:
generate:
runs-on: ubuntu-latest
name: Upload to S3
name: 🎯 Upload to S3
strategy:
fail-fast: false

Expand Down Expand Up @@ -68,6 +68,9 @@ jobs:
if [[ -f $(find . -maxdepth 1 -type f -name "${{ inputs.package-name }}_*_amd64.deb") ]]; then
aws s3 cp --sse=aws:kms --sse-kms-key-id="${AWSSSEKMSID}" ${{ inputs.package-name }}_*_amd64.deb s3://${PACKAGE_BUCKET}/apt/pool/main/
fi
if [[ -f $(find . -maxdepth 1 -type f -name "${{ inputs.package-name }}_*_all.deb") ]]; then
aws s3 cp --sse=aws:kms --sse-kms-key-id="${AWSSSEKMSID}" ${{ inputs.package-name }}_*_all.deb s3://${PACKAGE_BUCKET}/apt/pool/main/
fi
ARCH=("x86_64" "aarch64")
Expand All @@ -81,6 +84,11 @@ jobs:
done
done
# rpm noarch
if [[ -f $(find . -maxdepth 1 -type f -name "${{ inputs.package-name }}-*.noarch.rpm") ]]; then
aws s3 cp --sse=aws:kms --sse-kms-key-id="${AWSSSEKMSID}" ${{ inputs.package-name }}-*.noarch.rpm s3://${PACKAGE_BUCKET}/rpm/amazonlinux/${AL}/noarch/
fi
# apk
ALPINE=("3.17" "3.18" "3.19")
for ALP in "${ALPINE[@]}"; do
Expand All @@ -90,3 +98,8 @@ jobs:
fi
done
done
# apk noarch
if [[ -f $(find . -maxdepth 1 -type f -name "${{ inputs.package-name }}*_all.apk") ]]; then
aws s3 cp --sse=aws:kms --sse-kms-key-id="${AWSSSEKMSID}" ${{ inputs.package-name }}*_all.apk s3://${PACKAGE_BUCKET}/apk/v${ALP}/main/all/
fi
1 change: 0 additions & 1 deletion packages/jenkins-remoting-runner/nfpm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ arch: all
platform: linux
version: ${PKG_VER}
version_schema: none
version_metadata: git
release: 1
section: default
maintainer: Northwood Labs <[email protected]>
Expand Down

0 comments on commit 6fcf015

Please sign in to comment.