From 622ee884c417f51a9ca99a04d3c7299e9f634f16 Mon Sep 17 00:00:00 2001 From: evannregnault Date: Sun, 28 May 2023 22:31:04 +0200 Subject: [PATCH] Actions Test #1 --- .github/workflows/main.yml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4a891c6..6966c11 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -6,7 +6,7 @@ on: - main env: - DOCKER_REGISTRY: your.private.registry.com + DOCKER_REGISTRY: r.evannregnault.dev DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} @@ -18,10 +18,15 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 - - name: Install Rust and Cargo - run: | - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y - export PATH="$HOME/.cargo/bin:$PATH" + - name: Set up Rust + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + + - name: Install Cargo Dependencies + run: cargo fetch --locked - name: Get App Version id: version @@ -33,4 +38,4 @@ jobs: - name: Build and push Docker image run: | docker build --pull --cache-from "${{ env.DOCKER_REGISTRY }}/your-image:${{ steps.version.outputs.version }}" --tag "${{ env.DOCKER_REGISTRY }}/your-image:${{ steps.version.outputs.version }}" . - docker push "${{ env.DOCKER_REGISTRY }}/your-image:${{ steps.version.outputs.version }}" + docker push "${{ env.DOCKER_REGISTRY }}/your-image:${{ steps.version.outputs.version }}" \ No newline at end of file