ci/cd
Some checks failed
Deploy / build (push) Failing after 8s

This commit is contained in:
Никита Круглицкий
2025-09-26 00:43:46 +06:00
parent 3121e9aaee
commit a0f41b5c91
3 changed files with 26 additions and 6 deletions

View File

@@ -6,23 +6,32 @@ on:
- master
jobs:
build-and-deploy:
build:
runs-on: node-22
steps:
- name: ssh-keyscan
- name: Keyscan
run: |
mkdir ~/.ssh
ssh-keyscan git.koptilnya.xyz >> ~/.ssh/known_hosts
- name: Checkout code
- name: Checkout
uses: actions/checkout@v4
with:
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
ssh-strict: false
persist-credentials: false
- name: Install dependencies
- name: Build
run: docker build -t paxton:latest .
- name: Run
run: |
yarn install
yarn build
docker run -d \
--name paxton \
--label "traefik.enable=true" \
--label "traefik.http.routers.paxton.rule=Host(`paxton.koptilnya.xyz`)" \
--label "traefik.http.routers.paxton.entrypoints=websecure" \
--label "traefik.http.routers.paxton.tls.certresolver=myresolver" \
--label "traefik.http.services.paxton.loadbalancer.server.port=80" \
paxton:latest