ci: Simplify a few steps

curl and zstd are available on the CI image, no need to use the devshell
for them.

Signed-off-by: Gergely Nagy <me@gergo.csillger.hu>
This commit is contained in:
Gergely Nagy 2025-02-28 23:12:39 +01:00
parent 6cc9a51105
commit 5effc34f69
No known key found for this signature in database

View file

@ -59,21 +59,17 @@ jobs:
package: packages.${{ matrix.system }}.iocaine-static
- name: compress the binary
uses: actions/nix/develop@main
with:
run: |
zstd result/bin/iocaine -o iocaine-latest.${{ matrix.system }}.zst
run: |
zstd result/bin/iocaine -o iocaine-latest.${{ matrix.system }}.zst
- name: upload package
uses: actions/nix/develop@main
with:
run: |
curl --user :${{ secrets.DOCKER_PASSWORD }} -XDELETE \
https://git.madhouse-project.org/api/packages/iocaine/generic/iocaine-binaries/latest
curl --user :${{ secrets.DOCKER_PASSWORD }} \
--upload-file iocaine-latest.${{ matrix.system }}.zst \
--fail \
https://git.madhouse-project.org/api/packages/iocaine/generic/iocaine-binaries/latest/iocaine-latest.${{ matrix.system }}.zst
run: |
curl --user :${{ secrets.DOCKER_PASSWORD }} -XDELETE \
https://git.madhouse-project.org/api/packages/iocaine/generic/iocaine-binaries/latest
curl --user :${{ secrets.DOCKER_PASSWORD }} \
--upload-file iocaine-latest.${{ matrix.system }}.zst \
--fail \
https://git.madhouse-project.org/api/packages/iocaine/generic/iocaine-binaries/latest/iocaine-latest.${{ matrix.system }}.zst
container:
runs-on: nixos-latest