Fix global error page, update CI workflow, add Dockerfile
Some checks failed
Staging Build / build (push) Failing after 34s
Some checks failed
Staging Build / build (push) Failing after 34s
This commit is contained in:
@@ -19,5 +19,25 @@ jobs:
|
||||
|
||||
- name: Staging-Build generieren
|
||||
env:
|
||||
NODE_ENV: development
|
||||
NODE_ENV: production
|
||||
run: npm run build
|
||||
|
||||
- name: Docker login to Gitea registry
|
||||
run: echo ${{ secrets.GITEA_TOKEN }} | docker login gitea.hephex.de -u ${{ secrets.GITEA_USER }} --password-stdin
|
||||
env:
|
||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||
- name: Build Docker image
|
||||
run: docker build -t gitea.hephex.de/daniel/webshop:staging .
|
||||
working-directory: ..
|
||||
- name: Push Docker image
|
||||
run: docker push gitea.hephex.de/daniel/webshop:staging
|
||||
working-directory: ..
|
||||
- name: Deploy to Proxmox LXC via SSH
|
||||
uses: appleboy/ssh-action@v0.1.5
|
||||
with:
|
||||
host: 192.168.1.51
|
||||
username: ${{ secrets.PROXMOX_USER }}
|
||||
key: ${{ secrets.PROXMOX_SSH_KEY }}
|
||||
script: |
|
||||
cd /path/to/deployment
|
||||
docker compose pull webshop && docker compose up -d webshop
|
||||
|
||||
Reference in New Issue
Block a user