Created deploy pipeline
This commit is contained in:
parent
30a89d6662
commit
7b34c27290
3 changed files with 16 additions and 7 deletions
|
|
@ -55,9 +55,9 @@ jobs:
|
|||
needs: build
|
||||
runs-on: docker
|
||||
steps:
|
||||
- name: Setup Node environment
|
||||
- name: Setup environment
|
||||
run: |
|
||||
apk add --update nodejs npm
|
||||
apk --no-cache add --update nodejs npm curl
|
||||
- name: Code checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
|
|
@ -101,7 +101,15 @@ jobs:
|
|||
docker image tag ${{ env.CONTAINER_NAME }}:latest ${{ env.REGISTRY }}/${{ env.OWNER }}/${{ env.CONTAINER_NAME }}:${{ steps.prepare-env.outputs.VERSION }}
|
||||
docker image push ${{ env.REGISTRY }}/${{ env.OWNER }}/${{ env.CONTAINER_NAME }}:${{ steps.prepare-env.outputs.VERSION }}
|
||||
- name: Server deploy
|
||||
run: |
|
||||
echo "Deploy to server not implemented yet."
|
||||
uses: https://git.burcusel.nl/public/ssh-action@v1.2.6
|
||||
with:
|
||||
host: ${{ secrets.DEPLOY_HOST }}
|
||||
username: ${{ secrets.DEPLOY_USER }}
|
||||
key: ${{ secrets.DEPLOY_KEY }}
|
||||
script: |
|
||||
cd /opt/glowing-fiesta
|
||||
docker compose down
|
||||
docker compose pull
|
||||
docker compose up -d
|
||||
|
||||
####
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue