mirror of
https://git.asonix.dog/asonix/pict-rs.git
synced 2024-11-30 21:41:03 +00:00
Namespace binaries, copy pict-rs binary to proper folder
This commit is contained in:
parent
94c307c869
commit
3348b45d5f
1 changed files with 7 additions and 4 deletions
|
@ -48,13 +48,13 @@ jobs:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
include:
|
include:
|
||||||
- target: x86_64-unknown-linux-musl
|
- target: x86_64-unknown-linux-musl
|
||||||
artifact: amd64
|
artifact: linux-amd64
|
||||||
platform: linux/amd64
|
platform: linux/amd64
|
||||||
- target: armv7-unknown-linux-musleabihf
|
- target: armv7-unknown-linux-musleabihf
|
||||||
artifact: arm32v7
|
artifact: linux-arm32v7
|
||||||
platform: linux/arm/v7
|
platform: linux/arm/v7
|
||||||
- target: aarch64-unknown-linux-musl
|
- target: aarch64-unknown-linux-musl
|
||||||
artifact: arm64v8
|
artifact: linux-arm64v8
|
||||||
platform: linux/arm64
|
platform: linux/arm64
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
container:
|
container:
|
||||||
|
@ -78,7 +78,7 @@ jobs:
|
||||||
name: Prepare artifacts
|
name: Prepare artifacts
|
||||||
run: |
|
run: |
|
||||||
mkdir artifacts
|
mkdir artifacts
|
||||||
cp target/${{ matrix.target }}/release/pict-rs artifacts/pict-rs
|
cp target/${{ matrix.target }}/release/pict-rs artifacts/pict-rs-${{ matrix.artifact }}
|
||||||
-
|
-
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
@ -107,6 +107,9 @@ jobs:
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
-
|
||||||
|
name: Prepare binary
|
||||||
|
run: cp target/${{ matrix.target }}/release/pict-rs docker/forgejo/pict-rs
|
||||||
-
|
-
|
||||||
name: Build and push ${{ matrix.platform }} docker image
|
name: Build and push ${{ matrix.platform }} docker image
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
|
|
Loading…
Reference in a new issue