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 --no-cache \ --build-arg FORGE_URL="${{ vars.FORGE_URL }}" \ --build-arg FORGE_USER="${{ vars.FORGE_USER }}" \ --build-arg FORGE_REPO="${{ vars.FORGE_REPO }}" \ --build-arg FORGE_BRANCH="${{ vars.FORGE_BRANCH }}" \ -t klbr-blog . - 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