Fingerlink/.forgejo/workflows/release.yml
Karcsesz 9e4da661e6
Some checks failed
/ docker build (push) Failing after 4s
/ raw artifact (push) Failing after 1m11s
/ cargo test (push) Successful in 22s
apt-get requires -y
2024-03-18 01:40:11 +01:00

38 lines
No EOL
1.1 KiB
YAML

on:
push:
tags:
- 'v*'
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"
- run: apt-get update && apt-get install -y musl-tools
- run: cargo build --release --target x86_64-unknown-linux-musl
- run: mkdir _release && mv target/x86_64-unknown-linux-musl/release/fingerlink _release/fingerlink
- uses: actions/forgejo-release@v1
with:
direction: upload
release-dir: _release