Actions Test #1

This commit is contained in:
Evann Regnault 2023-05-28 22:31:04 +02:00
parent b608806507
commit 622ee884c4

View file

@ -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 }}"