From 2f8b1bd886e6aba7189af3692aefa0b1b61769e4 Mon Sep 17 00:00:00 2001 From: toast Date: Fri, 20 Oct 2023 09:39:13 +1100 Subject: [PATCH] Fix workflows --- .gitea/workflows/build_container.yml | 6 +++--- .gitea/workflows/deploy_container.yml | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/build_container.yml b/.gitea/workflows/build_container.yml index 6449f8d..7721968 100644 --- a/.gitea/workflows/build_container.yml +++ b/.gitea/workflows/build_container.yml @@ -18,15 +18,15 @@ jobs: apt-get update apt-get -y install docker-ce docker-ce-cli containerd.io - name: Checkout branch - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4 + uses: actions/checkout - name: Login to Gitea - uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3 + uses: docker/login-action with: registry: ${{ secrets.DOCKER_REGISTRY }} username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_TOKEN }} - name: Build and push image - uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5 + uses: docker/build-push-action with: context: . file: Dockerfile diff --git a/.gitea/workflows/deploy_container.yml b/.gitea/workflows/deploy_container.yml index 2e35c55..67f9da6 100644 --- a/.gitea/workflows/deploy_container.yml +++ b/.gitea/workflows/deploy_container.yml @@ -12,8 +12,7 @@ jobs: with: host: ${{ secrets.SSH_HOST }} username: ${{ secrets.SSH_USERNAME }} - passphrase: ${{ secrets.SSH_PASSPHRASE }} - key: ${{ secrets.SSH_KEY }} + key: ${{ secrets.SSH_PRVKEY }} port: ${{ secrets.SSH_PORT }} script: | cd corn-util && \