diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index f878269..1f0b1fe 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -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 diff --git a/Dockerfile b/Dockerfile index 8f488c9..28bbeed 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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/