Compare commits
2 Commits
9de013dcf1
...
006bb3d9bb
Author | SHA1 | Date | |
---|---|---|---|
006bb3d9bb | |||
f86c774965 |
43
.gitea/workflows/release.yaml
Normal file
43
.gitea/workflows/release.yaml
Normal file
@ -0,0 +1,43 @@
|
||||
name: Release
|
||||
on:
|
||||
push:
|
||||
- tags "v*.*.*"
|
||||
jobs:
|
||||
release-crate:
|
||||
name: Publish to crates.io
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: https://github.com/actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
profile: minimal
|
||||
- name: Publish release
|
||||
run: cargo publish --token ${{ secrets.CRATES_IO_TOKEN }}
|
||||
release-docker:
|
||||
name: Publish to Docker Hub
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: docker meta
|
||||
id: meta
|
||||
uses: https://github.com/docker/metadata-action@v5
|
||||
with:
|
||||
images:
|
||||
- kelnos/bebot
|
||||
tags:
|
||||
- type=semver,pattern={{version}}
|
||||
- type=semver,pattern={{major}}.{{minor}}
|
||||
- type=semver,pattern={{major}}
|
||||
- uses: docker/setup-qemu-action@v3
|
||||
- uses: docker/setup-buildx-action@v3
|
||||
- uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_PASSWORD }}
|
||||
- uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.output.labels }}
|
21
Cargo.toml
21
Cargo.toml
@ -1,9 +1,26 @@
|
||||
[package]
|
||||
name = "bebot"
|
||||
version = "0.1.0"
|
||||
description = "Gitlab webhook bot that publishes events to Matrix"
|
||||
license = "GPL-3.0"
|
||||
authors = [
|
||||
"Brian J. Tarricone <brian@tarricone.org>",
|
||||
]
|
||||
homepage = "https://git.spurint.org/kelnos/bebot"
|
||||
repository = "https://git.spurint.org/kelnos/bebot"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
categories = [
|
||||
"development-tools",
|
||||
]
|
||||
keywords = [
|
||||
"gitlab",
|
||||
"matrix",
|
||||
"bot",
|
||||
"webhook",
|
||||
]
|
||||
exclude = [
|
||||
".gitea/*",
|
||||
]
|
||||
|
||||
[dependencies]
|
||||
anyhow = "1"
|
||||
|
Loading…
Reference in New Issue
Block a user