Skip to content

Commit

Permalink
adding lib publish
Browse files Browse the repository at this point in the history
  • Loading branch information
Sarsoo committed Jul 28, 2024
1 parent 8a5ca64 commit 96035ba
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .gitea/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -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/
Expand Down

0 comments on commit 96035ba

Please sign in to comment.