From 01041ff3d817778315992ffe2136a2db93f591ec Mon Sep 17 00:00:00 2001 From: toast Date: Tue, 26 Mar 2024 12:43:00 +1100 Subject: [PATCH] --- .gitea/workflows/build.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index a4c9bdc..8e4a81a 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -9,6 +9,14 @@ jobs: build: runs-on: ubuntu-22.04-node steps: + - name: "Add Cargo registry" + run: | + mkdir -p ~/.cargo && \ + echo '[registries.gitea]' \ + 'index = "sparse+https://git.toast-server.net/api/packages/toast/cargo/"' \ + 'token = "Bearer ${{ secrets.CARGO_TOKEN }}"' >> ~/.cargo/config.toml + cat ~/.cargo/config.toml + - name: Set up Docker environment run: | apt update && apt upgrade -y && apt install -y apt-transport-https ca-certificates curl zstd gnupg lsb-release @@ -31,13 +39,6 @@ jobs: - name: Set up Docker Buildx uses: https://github.com/docker/setup-buildx-action@2b51285047da1547ffb1b2203d8be4c0af6b1f20 # v3 - - name: "Add Cargo registry" - run: | - mkdir -p ~/.cargo && \ - echo '[registries.gitea]' \ - 'index = "sparse+https://git.toast-server.net/api/packages/toast/cargo/"' \ - 'token = "Bearer ${{ secrets.CARGO_TOKEN }}"' >> ~/.cargo/config.toml - - name: Build and push image uses: https://github.com/docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0 with: