diff options
-rw-r--r-- | .github/workflows/release-build.yaml | 33 |
1 files changed, 31 insertions, 2 deletions
diff --git a/.github/workflows/release-build.yaml b/.github/workflows/release-build.yaml index 2fb674a..c64fbda 100644 --- a/.github/workflows/release-build.yaml +++ b/.github/workflows/release-build.yaml @@ -21,8 +21,8 @@ jobs: - bookworm arch: - amd64 -# - arm64 -# - armhf + - arm64 + - armhf steps: - name: "Install dependencies" run: |- @@ -48,3 +48,32 @@ jobs: source: "out/debian/*" strip_components: 2 target: "/srv/incoming/${{ inputs.version }}/debian/${{ matrix.arch }}/${{ matrix.release }}" + + - name: "Import artifacts into reprepro" + uses: nekiro/ssh-job@main + with: + host: "${{ secrets.REPO_HOST }}" + username: "${{ secrets.REPO_USER }}" + key: "${{ secrets.REPO_KEY }}" + command: |- + if [[ ${{ inputs.version }} == "master" ]]; then + COMPONENT="unstable" + else + COMPONENT="unstable" + fi + sudo reprepro --basedir --component ${COMPONENT} /srv/debian includedeb ${{ matrix.release }} /srv/incoming/${{ inputs.version }}/debian/${{ matrix.arch }}/${{ matrix.release }}/*.deb + sudo reprepro --basedir --component ${COMPONENT} /srv/debian includedsc ${{ matrix.release }} /srv/incoming/${{ inputs.version }}/dscian/${{ matrix.arch }}/${{ matrix.release }}/*.dsc + + - name: "Move artifacts into repository" + uses: nekiro/ssh-job@main + with: + host: "${{ secrets.REPO_HOST }}" + username: "${{ secrets.REPO_USER }}" + key: "${{ secrets.REPO_KEY }}" + command: |- + sudo mkdir -p /srv/repository/mirror/releases/server/debian/versions/${{ inputs.version }}/${{ matrix.arch }} + sudo mv -t /srv/repository/mirror/releases/server/debian/versions/${{ inputs.version }}/${{ matrix.arch }} /srv/incoming/${{ inputs.version }}/debian/${{ matrix.arch }}/${{ matrix.release }}/*.deb + if [[ ${{ inputs.version }} != "master" ]]; then + sudo ln -s /srv/repository/mirror/releases/server/debian/versions/${{ inputs.version }}/${{ matrix.arch }} /srv/repository/mirror/releases/server/debian/latest-server + fi + |