add: pipeline ci/cd
All checks were successful
Déploiement Docker Vite / deploy (push) Successful in 8m59s
All checks were successful
Déploiement Docker Vite / deploy (push) Successful in 8m59s
This commit is contained in:
parent
55006d9c72
commit
9b742bebdd
21
.gitea/workflows/deploy.yml
Normal file
21
.gitea/workflows/deploy.yml
Normal file
@ -0,0 +1,21 @@
|
||||
name: Déploiement Docker Vite
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- blog-upload
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Clone the repo
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Build docker image
|
||||
run: docker build -t klbr-blog .
|
||||
|
||||
- name: Delete old one
|
||||
run: docker rm -f klbr-blog || true
|
||||
|
||||
- name: Run the container
|
||||
run: docker run -d --name klbr-blog -p 8080:8080 klbr-blog
|
||||
Loading…
Reference in New Issue
Block a user