mirror of
https://git.asonix.dog/asonix/pict-rs
synced 2024-12-22 11:21:24 +00:00
Try to fix prepare platform
This commit is contained in:
parent
798e628ae2
commit
0ca95b9368
1 changed files with 22 additions and 23 deletions
|
@ -62,6 +62,28 @@ jobs:
|
||||||
-
|
-
|
||||||
name: Checkout pict-rs
|
name: Checkout pict-rs
|
||||||
uses: https://github.com/actions/checkout@v4
|
uses: https://github.com/actions/checkout@v4
|
||||||
|
-
|
||||||
|
name: Prepare Platform
|
||||||
|
run: |
|
||||||
|
bash -c 'platform=${{ matrix.info.platform }} echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV'
|
||||||
|
-
|
||||||
|
name: Docker meta
|
||||||
|
id: meta
|
||||||
|
uses: https://github.com/docker/metadata-action@v5
|
||||||
|
with:
|
||||||
|
images: ${{ env.REGISTRY_IMAGE }}
|
||||||
|
-
|
||||||
|
name: Set up QEMU
|
||||||
|
uses: https://github.com/docker/setup-qemu-action@v3
|
||||||
|
-
|
||||||
|
name: Set up Docker Buildx
|
||||||
|
uses: https://github.com/docker/setup-buildx-action@v3
|
||||||
|
-
|
||||||
|
name: Docker login
|
||||||
|
uses: https://github.com/docker/login-action@v3
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
-
|
-
|
||||||
name: Setup Rust
|
name: Setup Rust
|
||||||
uses: https://git.asonix.dog/asonix/pict-rs/.forgejo/actions/prepare-rust@main
|
uses: https://git.asonix.dog/asonix/pict-rs/.forgejo/actions/prepare-rust@main
|
||||||
|
@ -83,29 +105,6 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.info.artifact }}
|
name: ${{ matrix.info.artifact }}
|
||||||
path: artifacts/
|
path: artifacts/
|
||||||
-
|
|
||||||
name: Prepare Platform
|
|
||||||
run: |
|
|
||||||
platform=${{ matrix.info.platform }}
|
|
||||||
echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV
|
|
||||||
-
|
|
||||||
name: Docker meta
|
|
||||||
id: meta
|
|
||||||
uses: https://github.com/docker/metadata-action@v5
|
|
||||||
with:
|
|
||||||
images: ${{ env.REGISTRY_IMAGE }}
|
|
||||||
-
|
|
||||||
name: Set up QEMU
|
|
||||||
uses: https://github.com/docker/setup-qemu-action@v3
|
|
||||||
-
|
|
||||||
name: Set up Docker Buildx
|
|
||||||
uses: https://github.com/docker/setup-buildx-action@v3
|
|
||||||
-
|
|
||||||
name: Docker login
|
|
||||||
uses: https://github.com/docker/login-action@v3
|
|
||||||
with:
|
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
||||||
-
|
-
|
||||||
name: Prepare binary
|
name: Prepare binary
|
||||||
run: cp target/${{ matrix.info.target }}/release/pict-rs docker/forgejo/pict-rs
|
run: cp target/${{ matrix.info.target }}/release/pict-rs docker/forgejo/pict-rs
|
||||||
|
|
Loading…
Reference in a new issue