Skip to content

Commit

Permalink
fix: ci/cd docker
Browse files Browse the repository at this point in the history
  • Loading branch information
stephane-segning committed Aug 13, 2024
1 parent dce1080 commit a4919f8
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,18 @@ jobs:
- uses: actions/checkout@v4
name: Checkout repository

- name: Build Translator
# Cache Rust dependencies
- name: Cache Rust dependencies
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Build Server
working-directory: wazuh-cert-oauth2
run: cargo build --verbose && cargo test --verbose

Expand Down Expand Up @@ -78,4 +89,12 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64 #,linux/arm64,linux/arm/v7
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new
cache-to: type=local,dest=/tmp/.buildx-cache-new

# Save the updated Docker cache
- name: Save Docker cache
if: always()
uses: actions/upload-artifact@v3
with:
name: buildx-cache
path: /tmp/.buildx-cache-new

0 comments on commit a4919f8

Please sign in to comment.