adding lib publish
Some checks failed
Build Binaries / Build & Test (push) Failing after 54s
Build Binaries / Package Library (push) Has been skipped
Build Binaries / Package Container (push) Has been skipped

This commit is contained in:
Andy Pack 2024-07-28 10:45:40 +01:00
parent 8a5ca641e3
commit 96035ba819
Signed by: sarsoo
GPG Key ID: A55BA3536A5E0ED7
2 changed files with 23 additions and 1 deletions

View File

@ -30,6 +30,28 @@ jobs:
with:
command: test
publishLib:
runs-on: ubuntu-latest
name: Package Library
needs: [ build ] # for ignoring bad builds
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
steps:
- name: Checkout
uses: actions/checkout@v4
with:
github-server-url: https://gitea.sheep-ghoul.ts.net
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Cargo Publish
uses: actions-rs/cargo@v1
with:
command: publish
args: --manifest-path ./dnstp --index https://gitea.sheep-ghoul.ts.net/sarsoo/_cargo-index.git --registry sparse+https://git.lab.sarsoo.xyz/api/packages/${{ secrets.DOCKERHUB_USERNAME }}/cargo/ --token ${{ secrets.DOCKERHUB_TOKEN }}
package:
runs-on: ubuntu-latest
name: Package Container

View File

@ -1,4 +1,4 @@
FROM rust:1.75.0-alpine3.19 as build
FROM rust:1.78.0-alpine3.19 as build
RUN apk add --no-cache musl-dev
COPY . /dnstp/