From 94d454319da859cd83b5dc3c575ae37ebd3a1835 Mon Sep 17 00:00:00 2001 From: Raphael Jacob Date: Wed, 27 Dec 2023 20:17:29 +0100 Subject: [PATCH] Add deployment --- .github/workflows/{docker-publish.yml => main.yml} | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) rename .github/workflows/{docker-publish.yml => main.yml} (87%) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/main.yml similarity index 87% rename from .github/workflows/docker-publish.yml rename to .github/workflows/main.yml index 8cfaee2..aa1dfc7 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/main.yml @@ -1,4 +1,4 @@ -name: Docker +name: Build&Deploy on: push: @@ -73,3 +73,14 @@ jobs: # This step uses the identity token to provision an ephemeral certificate # against the sigstore community Fulcio instance. run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST} + + deploy: + runs-on: ubuntu-latest + if: (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/')) + steps: + - name: executing remote ssh commands using ssh key + uses: appleboy/ssh-action@v1.0.1 + with: + host: ${{ secrets.DEPLOY_HOST }} + username: ${{ secrets.DEPLOY_USER }} + key: ${{ secrets.DEPLOY_KEY }}