adding repo when publishing
Some checks failed
Build Binaries / Build & Test (push) Successful in 53s
Build Binaries / Package Library (push) Failing after 41s
Build Binaries / Package Container (push) Has been cancelled

This commit is contained in:
Andy Pack 2024-07-28 11:17:02 +01:00
parent e1a6202d37
commit f8d773c1a9
Signed by: sarsoo
GPG Key ID: A55BA3536A5E0ED7
4 changed files with 16 additions and 3 deletions

View File

@ -12,7 +12,7 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
github-server-url: https://gitea.sheep-ghoul.ts.net github-server-url: https://gitea.sheep-ghoul.ts.net
- name: Install Rust - name: Install Rust
@ -46,11 +46,21 @@ jobs:
with: with:
toolchain: stable toolchain: stable
- name: Add SarGit Repo
run: |
cat <<EOF > ~/.cargo/config.toml
[registry]
default = "sargit"
[registries.sargit]
index = "sparse+https://git.lab.sarsoo.xyz/api/packages/sarsoo/cargo/"
EOF
- name: Cargo Publish - name: Cargo Publish
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
with: with:
command: publish command: publish
args: --manifest-path ./dnstp --registry sparse+https://git.lab.sarsoo.xyz/api/packages/${{ secrets.DOCKERHUB_USERNAME }}/cargo/ --token ${{ secrets.DOCKERHUB_TOKEN }} args: --token ${{ secrets.DOCKERHUB_TOKEN }}
package: package:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -59,7 +69,7 @@ jobs:
if: github.event_name == 'push' && github.ref == 'refs/heads/master' if: github.event_name == 'push' && github.ref == 'refs/heads/master'
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
github-server-url: https://gitea.sheep-ghoul.ts.net github-server-url: https://gitea.sheep-ghoul.ts.net
- name: Set up Docker Buildx - name: Set up Docker Buildx

View File

@ -2,6 +2,7 @@
name = "dnstp-client" name = "dnstp-client"
version = "0.1.0" version = "0.1.0"
edition = "2021" edition = "2021"
publish = false
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@ -2,6 +2,7 @@
name = "dnstp" name = "dnstp"
version = "0.1.0" version = "0.1.0"
edition = "2021" edition = "2021"
publish = false
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@ -2,6 +2,7 @@
name = "dnstplib" name = "dnstplib"
version = "0.1.0" version = "0.1.0"
edition = "2021" edition = "2021"
publish = ["sargit"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html