Someone told me to do this
Some checks failed
Build Docker Image and Deploy / Build Image and push to Registry (push) Successful in 29s
Build Docker Image and Deploy / Deploy on webserver (push) Failing after 9s

This commit is contained in:
Cyril Šebek 2024-07-07 21:46:02 +02:00
parent 8da5cc7970
commit 5023fc631f
Signed by: blboun3
SSH Key Fingerprint: SHA256:n9dMtOPzgsD+CCerUJslEnU2dzVanbaIv0XDQVRVjeg
2 changed files with 5 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# #
name: Build Docker Image and Deploy name: Build Docker Image and Deploy
# Configures this workflow to run every time a change is pushed to main. # Configures this workflow to run every time a change is pushed to main.
@ -61,6 +61,9 @@ jobs:
with: with:
ssh-private-key: ${{ secrets.SSH_PRIV_KEY }} ssh-private-key: ${{ secrets.SSH_PRIV_KEY }}
- name: agentttest
run: ssh-add -l
- name: Login to registry - name: Login to registry
run: ssh ${{ vars.TARGET_USER }}@${{ vars.TARGET }} -o StrictHostKeyChecking=no "docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} ${{ vars.REGISTRY }}" run: ssh ${{ vars.TARGET_USER }}@${{ vars.TARGET }} -o StrictHostKeyChecking=no "docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} ${{ vars.REGISTRY }}"
- name: Pull new image - name: Pull new image

View File

@ -14,7 +14,7 @@ COPY tsconfig.json tsconfig.json
COPY components.json components.json COPY components.json components.json
RUN npm run build RUN npm run build
FROM node:lts-slim as prod FROM node:lts-slim
WORKDIR /app WORKDIR /app
RUN corepack enable pnpm RUN corepack enable pnpm