From 1890b12806c4947fd6ed9ccd4c4ea5345a5eed95 Mon Sep 17 00:00:00 2001 From: Florian RICHER Date: Tue, 21 Nov 2023 19:54:47 +0100 Subject: [PATCH] Try --- .gitea/workflows/deploy.yml | 38 +++++++++++++++++++------------------ 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index adffe10..f820ee2 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -5,26 +5,28 @@ on: branches: [ main ] jobs: - my-job: + docker: runs-on: ubuntu-latest steps: - - name: Setup Rust - uses: https://github.com/actions-rs/toolchain@v1 + - name: Checkout + uses: https://github.com/actions/checkout@v3 + + - name: Set up QEMU + uses: https://github.com/docker/setup-qemu-action@v3 + + - name: Set up Docker Buildx + uses: https://github.com/docker/setup-buildx-action@v3 + + - name: Login to Docker Hub + uses: https://github.com/docker/login-action@v3 with: - toolchain: nightly - override: true - components: rustfmt + registry: gitea.mrdev023.fr + username: ${{ secrets.GITEA_USERNAME }} + password: ${{ secrets.GITEA_PASSWORD }} - - name: Add wasm32-unknown-unknown - run: rustup target add wasm32-unknown-unknown - - - name: Add cargo-letpos - run: cargo install -j 1 cargo-leptos - - - name: Install Node.js - uses: https://github.com/actions/setup-node@v4 + - name: Build and push + uses: https://github.com/docker/build-push-action@v5 with: - node-version: 19 - - - name: my-step - run: echo "Hello World 2!" \ No newline at end of file + context: . + push: true + tags: gitea.mrdev023.fr/mrdev023/portfolio:latest \ No newline at end of file