2024-03-18 01:32:23 +01:00
|
|
|
on:
|
2024-03-18 01:35:51 +01:00
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- 'v*'
|
2024-03-18 01:32:23 +01:00
|
|
|
|
2024-03-18 01:30:19 +01:00
|
|
|
jobs:
|
|
|
|
docker:
|
|
|
|
name: docker build
|
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
steps:
|
|
|
|
- uses: docker/login-action@v3
|
|
|
|
with:
|
|
|
|
username: ${{ secrets.DOCKERHUB_USERNAME}}
|
|
|
|
password: ${{ secrets.DOCKERHUB_TOKEN}}
|
|
|
|
- uses: docker/build-push-action@v5
|
|
|
|
with:
|
|
|
|
push: false
|
|
|
|
tags: karcsesz/fingerlink:latest
|
|
|
|
- uses: docker/build-push-action@v5
|
|
|
|
with:
|
|
|
|
push: false
|
|
|
|
tags: karcsesz/fingerlink:latest-nano
|
|
|
|
build-args: "editor=nano"
|
|
|
|
binary:
|
|
|
|
name: raw artifact
|
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/rust-toolchain@stable
|
|
|
|
with:
|
|
|
|
targets: "x86_64-unknown-linux-musl,aarch64-unknown-linux-musl"
|
2024-03-18 01:40:11 +01:00
|
|
|
- run: apt-get update && apt-get install -y musl-tools
|
2024-03-18 01:30:19 +01:00
|
|
|
- run: cargo build --release --target x86_64-unknown-linux-musl
|
2024-03-18 01:38:54 +01:00
|
|
|
- run: mkdir _release && mv target/x86_64-unknown-linux-musl/release/fingerlink _release/fingerlink
|
2024-03-18 01:30:19 +01:00
|
|
|
- uses: actions/forgejo-release@v1
|
|
|
|
with:
|
|
|
|
direction: upload
|
|
|
|
release-dir: _release
|