From 7ba657e459ff40041caf5d1980c67765a8ba6697 Mon Sep 17 00:00:00 2001 From: pomni32 Date: Tue, 3 Dec 2024 00:32:14 +1100 Subject: [PATCH] Update workflow --- .gitea/workflows/build.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 1751214..3f1b6c6 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -17,10 +17,10 @@ jobs: steps: - name: Set up Docker Buildx - uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db # v3.6.1 + uses: docker/setup-buildx-action # v3 - name: Checkout - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + uses: actions/checkout # v4 - name: Install zstd run: sudo apt-get update && sudo apt-get install -y zstd @@ -32,7 +32,7 @@ jobs: cat hash.txt - name: Cache - uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 + uses: actions/cache # v4 id: cache with: save-always: true @@ -45,16 +45,15 @@ jobs: key: ${{ runner.os }}-cache-${{ steps.cargo-cache-key.outputs.hash }} - name: Login to Gitea - uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0 + uses: docker/login-action # v3 with: registry: git.toast-server.net username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_TOKEN }} - name: Set up Rust toolchain - uses: actions-rust-lang/setup-rust-toolchain@1fbea72663f6d4c03efaab13560c8a24cfd2a7cc # v1.9.0 + uses: actions-rust-lang/setup-rust-toolchain # v1 with: - toolchain: stable rustflags: -C target-feature=-crt-static - name: Install zigbuild @@ -70,7 +69,7 @@ jobs: cargo zigbuild --target x86_64-unknown-linux-musl --locked -rF production - name: Build and push image - uses: docker/build-push-action@5cd11c3a4ced054e52742c5fd54dca954e0edd85 # v6.7.0 + uses: docker/build-push-action # v6 with: context: . platforms: linux/amd64 @@ -85,7 +84,7 @@ jobs: needs: build steps: - name: Deploy update - uses: appleboy/ssh-action@d732991ab09097d8c8f390d91385b0386e619598 # v1.0.3 + uses: appleboy/ssh-action # v1 with: host: ${{ secrets.SSH_HOST }} username: ${{ secrets.SSH_USERNAME }}