Skip to content

Commit

Permalink
Use terrapkg/builder image (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
lleyton authored Jan 14, 2023
1 parent ba3482b commit 5507bf9
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 57 deletions.
20 changes: 2 additions & 18 deletions .github/workflows/autobuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,10 @@ jobs:
outputs:
build_matrix: ${{ steps.generate_build_matrix.outputs.build_matrix }}
container:
image: registry.fedoraproject.org/fedora:37
image: ghcr.io/terrapkg/builder:nightly
options: --cap-add=SYS_ADMIN --privileged
# check out the repo
steps:
- name: Set up dependencies
run: |
sudo dnf install -y dnf-plugins-core
sudo dnf config-manager --add-repo https://github.com/terrapkg/subatomic-repos/raw/main/terra37.repo
sudo dnf install -y anda mock rpm-build git-core
# add to safe directory
git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Checkout
uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -68,25 +61,16 @@ jobs:
#if: ${{ matrix.changed_folders != '' }}
runs-on: ${{ matrix.pkg.arch == 'aarch64' && 'ARM64' || 'ubuntu-latest' }}
container:
image: registry.fedoraproject.org/fedora:37
image: ghcr.io/terrapkg/builder:nightly
options: --cap-add=SYS_ADMIN --privileged
steps:
- name: Install repositories
run: |
sudo dnf install -y dnf-plugins-core
sudo dnf config-manager --add-repo https://github.com/terrapkg/subatomic-repos/raw/main/terra${{ matrix.version }}.repo
sudo dnf install -y anda-mock-configs subatomic-cli anda mock rpm-build mock-scm
- uses: terrapkg/anda-build@main
with:
name: "${{ matrix.pkg.pkg }}"
mockConfig: anda-${{ matrix.version }}-${{ matrix.pkg.arch }}
extraArgs: -D "sccache_bucket ${{secrets.SCCACHE_BUCKET}}" -D "sccache_endpoint ${{secrets.SCCACHE_ENDPOINT}}" -D "sccache_secret ${{secrets.SCCACHE_SECRET}}" -D "sccache_accesskey ${{secrets.SCCACHE_ACCESSKEY}}"
andaRepo: https://github.com/terrapkg/subatomic-repos/raw/main/terra${{ matrix.version }}.repo

- name: Install Subatomic client
run: sudo dnf install -y subatomic-cli

- name: Upload packages to subatomic
run: |
subatomic-cli upload --prune \
Expand Down
11 changes: 1 addition & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,25 +25,16 @@ jobs:
fail-fast: false
runs-on: ${{ matrix.arch == 'aarch64' && 'ARM64' || 'ubuntu-latest' }}
container:
image: registry.fedoraproject.org/fedora:37
image: ghcr.io/terrapkg/builder:nightly
options: --cap-add=SYS_ADMIN --privileged
steps:
- name: Install repositories
run: |
sudo dnf install -y dnf-plugins-core
sudo dnf config-manager --add-repo https://github.com/terrapkg/subatomic-repos/raw/main/terra${{ matrix.version }}.repo
sudo dnf install -y anda-mock-configs subatomic-cli anda mock rpm-build mock-scm
- uses: terrapkg/anda-build@main
with:
name: "${{ matrix.pkg }}pkg"
mockConfig: anda-37-${{ matrix.arch }}
extraArgs: -D "sccache_bucket ${{secrets.SCCACHE_BUCKET}}" -D "sccache_endpoint ${{secrets.SCCACHE_ENDPOINT}}" -D "sccache_secret ${{secrets.SCCACHE_SECRET}}" -D "sccache_accesskey ${{secrets.SCCACHE_ACCESSKEY}}"
andaRepo: https://github.com/terrapkg/subatomic-repos/raw/main/terra.repo

- name: Install Subatomic client
run: sudo dnf install -y subatomic-cli

- name: Upload packages to subatomic
run: |
subatomic-cli upload --prune \
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@ jobs:
lint:
runs-on: ubuntu-latest
container:
image: registry.fedoraproject.org/fedora:37
image: ghcr.io/terrapkg/builder:nightly
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install dependencies
run: dnf install -y rpmlint
- name: Lint spec files
run: rpmlint $(find anda -type f -name "*.spec" -type f)
12 changes: 1 addition & 11 deletions .github/workflows/mass-rebuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
#if: ${{ matrix.changed_folders != '' }}
runs-on: ${{ matrix.arch == 'aarch64' && 'ARM64' || 'ubuntu-latest' }}
container:
image: registry.fedoraproject.org/fedora:37
image: ghcr.io/terrapkg/builder:nightly
options: --cap-add=SYS_ADMIN --privileged
steps:
- name: Checkout
Expand All @@ -55,12 +55,6 @@ jobs:
else
echo "EXISTS=false" >> $GITHUB_OUTPUT
fi
- name: Install repositories
if: steps.check_files.outputs.EXISTS == 'true'
run: |
sudo dnf install -y dnf-plugins-core
sudo dnf config-manager --add-repo https://github.com/terrapkg/subatomic-repos/raw/main/terra${{ matrix.version }}.repo
sudo dnf install -y anda-mock-configs subatomic-cli anda mock rpm-build
- uses: terrapkg/anda-build@main
if: steps.check_files.outputs.EXISTS == 'true'
Expand All @@ -70,10 +64,6 @@ jobs:
extraArgs: -D "sccache_bucket ${{secrets.SCCACHE_BUCKET}}" -D "sccache_endpoint ${{secrets.SCCACHE_ENDPOINT}}" -D "sccache_secret ${{secrets.SCCACHE_SECRET}}" -D "sccache_accesskey ${{secrets.SCCACHE_ACCESSKEY}}"
andaRepo: https://github.com/terrapkg/subatomic-repos/raw/main/terra.repo

- name: Install Subatomic client
if: steps.check_files.outputs.EXISTS == 'true'
run: sudo dnf install -y subatomic-cli

- name: Upload packages to subatomic
if: steps.check_files.outputs.EXISTS == 'true'
run: |
Expand Down
9 changes: 1 addition & 8 deletions .github/workflows/update-comps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,9 @@ jobs:
update-comps:
runs-on: ubuntu-latest
container:
image: fedora:37
image: ghcr.io/terrapkg/builder:nightly
steps:
- uses: actions/checkout@v3
- name: Install repositories
run: |
sudo dnf install -y dnf-plugins-core
sudo dnf config-manager --add-repo https://github.com/terrapkg/subatomic-repos/raw/main/terra37.repo
- name: Install dependencies
run: |
sudo dnf install -y subatomic-cli
- name: Push to subatomic
run: |
subatomic-cli upload-comps \
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,9 @@ jobs:
autoupdate:
runs-on: ubuntu-latest
container:
image: registry.fedoraproject.org/fedora:37
image: ghcr.io/terrapkg/builder:nightly
options: --cap-add=SYS_ADMIN --privileged
steps:
- name: Install packages
run: |
sudo dnf install -y dnf-plugins-core
sudo dnf config-manager --add-repo https://github.com/terrapkg/subatomic-repos/raw/main/terra37.repo
dnf install -y rpmdevtools git python anda
- name: Checkout
uses: actions/checkout@v3
with:
Expand Down

0 comments on commit 5507bf9

Please sign in to comment.