From 0d8446639e5b2fca92d25332a48787e357df17f0 Mon Sep 17 00:00:00 2001 From: xuu Date: Fri, 29 Sep 2023 13:13:09 -0600 Subject: [PATCH] build: add gitea runner --- .gitea/workflows/build-test.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/build-test.yml b/.gitea/workflows/build-test.yml index 1a534c3..87081df 100644 --- a/.gitea/workflows/build-test.yml +++ b/.gitea/workflows/build-test.yml @@ -43,23 +43,23 @@ jobs: go-version: 1.21.1 - name: Build - run: go build -ldflags "-s -w" -o build/ev ./cmd/ev + run: go build -ldflags "-s -w" -o ./build/ev ./cmd/ev - name: Compress uses: https://git.sour.is/actions/ghaction-upx@v2.4.0 with: version: latest files: | - ./cmd/ev + ./build/ev args: -fq - name: Deploy uses: https://git.sour.is/actions/action-ansible-playbook@v2 with: - playbook: .ansible/playbook.yml + playbook: ${{ gitea.workspace }}/.ansible/playbook.yml key: ${{secrets.deploy_ssh}} options: | - --inventory .hosts + --inventory .ansible/inventory --become --become-method sudo --user deploy