aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorJoshua M. Boniface <joshua@boniface.me>2024-02-12 01:44:56 -0500
committerJoshua M. Boniface <joshua@boniface.me>2024-02-12 01:44:56 -0500
commit6911acb8f162612105b363090f6a3a36758a09b2 (patch)
tree52586794228a570817caa7f1a99c09d4512e7030 /.github
parentAdjust titles for consistency (diff)
downloadjellyfin-packaging-6911acb8f162612105b363090f6a3a36758a09b2.tar.gz
jellyfin-packaging-6911acb8f162612105b363090f6a3a36758a09b2.tar.bz2
jellyfin-packaging-6911acb8f162612105b363090f6a3a36758a09b2.zip
Add Ubuntu runners
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/release-build.yaml67
1 files changed, 67 insertions, 0 deletions
diff --git a/.github/workflows/release-build.yaml b/.github/workflows/release-build.yaml
index 44c8aaf..9d54cb5 100644
--- a/.github/workflows/release-build.yaml
+++ b/.github/workflows/release-build.yaml
@@ -78,3 +78,70 @@ jobs:
sudo ln -s /srv/repository/mirror/releases/server/debian/versions/${{ inputs.version }}/${{ matrix.arch }} /srv/repository/mirror/releases/server/debian/latest-server
fi
+ Ubuntu:
+ runs-on: ubuntu-22.04
+ strategy:
+ matrix:
+ release:
+ - focal
+ - jammy
+ # - noble
+ arch:
+ - amd64
+ - arm64
+ - armhf
+ steps:
+ - name: "Install dependencies"
+ run: |-
+ sudo apt-get install --yes python3-git
+
+ - name: "Checkout repository"
+ uses: actions/checkout@v3
+
+ - name: "Prepare repository"
+ run: |-
+ ./checkout.py ${{ github.event.client_payload.version }}
+
+ - name: "Run builder for ${{ matrix.version }} ${{ matrix.arch }}"
+ run: |-
+ sudo ./build.py ${{ inputs.version }} ubuntu ${{ matrix.arch }} ${{ matrix.release }}
+
+ - name: "Upload artifacts to repository server"
+ uses: appleboy/scp-action@v0.1.7
+ with:
+ host: "${{ secrets.REPO_HOST }}"
+ username: "${{ secrets.REPO_USER }}"
+ key: "${{ secrets.REPO_KEY }}"
+ source: "out/ubuntu/*"
+ strip_components: 2
+ target: "/srv/incoming/${{ inputs.version }}/ubuntu/${{ matrix.arch }}/${{ matrix.release }}"
+
+ - name: "Import artifacts into reprepro"
+ uses: appleboy/ssh-action@v1.0.3
+ with:
+ host: "${{ secrets.REPO_HOST }}"
+ username: "${{ secrets.REPO_USER }}"
+ key: "${{ secrets.REPO_KEY }}"
+ script: |
+ set -o xtrace
+ if [[ ${{ inputs.version }} == "master" ]]; then
+ COMPONENT="main"
+ else
+ COMPONENT="unstable"
+ fi
+ sudo reprepro --basedir /srv/ubuntu --component ${COMPONENT} includedeb ${{ matrix.release }} /srv/incoming/${{ inputs.version }}/ubuntu/${{ matrix.arch }}/${{ matrix.release }}/*.deb
+ sudo reprepro --basedir /srv/ubuntu --component ${COMPONENT} includedsc ${{ matrix.release }} /srv/incoming/${{ inputs.version }}/ubuntu/${{ matrix.arch }}/${{ matrix.release }}/*.dsc
+
+ - name: "Move artifacts into repository"
+ uses: appleboy/ssh-action@v1.0.3
+ with:
+ host: "${{ secrets.REPO_HOST }}"
+ username: "${{ secrets.REPO_USER }}"
+ key: "${{ secrets.REPO_KEY }}"
+ script: |
+ sudo mkdir -p /srv/repository/mirror/releases/server/ubuntu/versions/${{ inputs.version }}/${{ matrix.arch }}
+ sudo mv -t /srv/repository/mirror/releases/server/ubuntu/versions/${{ inputs.version }}/${{ matrix.arch }} /srv/incoming/${{ inputs.version }}/ubuntu/${{ matrix.arch }}/${{ matrix.release }}/*.deb
+ if [[ ${{ inputs.version }} != "master" ]]; then
+ sudo ln -s /srv/repository/mirror/releases/server/ubuntu/versions/${{ inputs.version }}/${{ matrix.arch }} /srv/repository/mirror/releases/server/ubuntu/latest-server
+ fi
+
bgstack15