From 4d20ff60e2dd08b26be718189de3a202d92f5317 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Wed, 24 Jan 2024 11:10:34 +0100 Subject: [PATCH] docker build --- .gitea/workflows/build-image.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.gitea/workflows/build-image.yaml b/.gitea/workflows/build-image.yaml index 8800bed..e8eb840 100644 --- a/.gitea/workflows/build-image.yaml +++ b/.gitea/workflows/build-image.yaml @@ -50,3 +50,19 @@ jobs: - name: Compile website run: npm run build + + - name: Set up Docker Buildx + uses: https://github.com/docker/setup-buildx-action@v3 + + - name: Login to registry + uses: https://github.com/docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + registry: 'h3m6q87t.gra7.container-registry.ovh.net' + + - name: Build and push + uses: https://github.com/docker/build-push-action@v5 + with: + push: true + tags: chill_website/web:1.0.0