Skip to content

Commit

Permalink
new stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
khos2ow committed Jan 8, 2025
1 parent f4cc142 commit 5ef0e77
Show file tree
Hide file tree
Showing 2 changed files with 95 additions and 2 deletions.
89 changes: 89 additions & 0 deletions .github/workflows/publish-unstable.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
name: Publish to Unstable

on:
push:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
matrix-builder:
runs-on: ubuntu-24.04
outputs:
includes: ${{ steps.builder.outputs.includes }}
steps:
- name: Build Matrix
id: builder
uses: regolith-linux/actions/build-matrix@main
with:
name: "${{ github.event.repository.name }}"
ref: "${{ github.base_ref }}"
arch: "amd64 arm64"
stage: "unstable"

build:
runs-on: ubuntu-24.04
needs: matrix-builder
container: "ghcr.io/regolith-linux/ci-${{ matrix.distro }}:${{ matrix.codename }}-${{ matrix.arch }}"
strategy:
fail-fast: false
matrix:
include: ${{ fromJSON(needs.matrix-builder.outputs.includes) }}
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Build Package
id: build
uses: regolith-linux/actions/build-package@main
with:
name: "${{ github.event.repository.name }}"
distro: "${{ matrix.distro }}"
codename: "${{ matrix.codename }}"
stage: "unstable"
suite: "unstable"
component: "main"
arch: "${{ matrix.arch }}"
gpg-key: "${{ secrets.PACKAGE_PRIVATE_KEY2 }}"

- name: Upload Files
uses: regolith-linux/actions/upload-files@main
with:
server-address: "${{ secrets.KAMATERA_HOSTNAME2 }}"
# server-username: "${{ secrets.KAMATERA_USERNAME }}"
server-username: "root"
server-ssh-key: "${{ secrets.KAMATERA_SSH_KEY }}"
source-path: "${{ steps.build.outputs.publish-path }}"
package-name: "${{ github.event.repository.name }}"

sources:
runs-on: ubuntu-24.04
needs: build
container: "ghcr.io/regolith-linux/ci-ubuntu:noble-amd64"
if: ${{ !failure() && !cancelled() }}
steps:
- name: Rebuild Sources
uses: regolith-linux/actions/rebuild-sources@main
# with:
# pull-from: /opt/archives/workspace/
# push-to: /opt/archives/packages/
#
# server-address: "${{ secrets.KAMATERA_HOSTNAME2 }}"
# server-user: "${{ secrets.KAMATERA_USERNAME2 }}"
# only-component: "unstable"

publish:
runs-on: ubuntu-24.04
needs: [build, sources]
container: "ghcr.io/regolith-linux/ci-ubuntu:noble-amd64"
if: ${{ !failure() && !cancelled() }}
steps:
- name: Publish Repo
uses: regolith-linux/actions/publish-repo@main
# with:
# server-address: "${{ secrets.KAMATERA_HOSTNAME2 }}"
# server-user: "${{ secrets.KAMATERA_USERNAME2 }}"
# only-component: "unstable"
8 changes: 6 additions & 2 deletions .github/workflows/test-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,13 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Import GPG Key
uses: regolith-linux/actions/import-gpg@update-manifest
with:
gpg-key: "${{ secrets.PACKAGE_PRIVATE_KEY2 }}"

- name: Build Package
uses: regolith-linux/actions/build-package@main
uses: regolith-linux/actions/build-package@update-manifest
with:
name: "${{ github.event.repository.name }}"
distro: "${{ matrix.distro }}"
Expand All @@ -44,4 +49,3 @@ jobs:
suite: "unstable"
component: "main"
arch: "${{ matrix.arch }}"
gpg-key: "${{ secrets.PACKAGE_PRIVATE_KEY2 }}"

0 comments on commit 5ef0e77

Please sign in to comment.