Skip to content

Commit

Permalink
fix: ci/cd
Browse files Browse the repository at this point in the history
  • Loading branch information
stephane-segning committed Aug 13, 2024
1 parent c723e25 commit 3e0a876
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ jobs:
if: matrix.os == 'ubuntu-latest'
run: |
if [[ ${{ matrix.arch }} == "arm64" ]]; then
sudo dpkg --add-architecture arm64
sudo apt-get update
sudo apt-get install -y libssl-dev:arm64
export PKG_CONFIG_PATH=/usr/lib/aarch64-linux-gnu/pkgconfig
elif [[ ${{ matrix.arch }} == "x86_64" ]]; then
Expand Down
8 changes: 6 additions & 2 deletions wazuh-cert-oauth2/Dockerfile → Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,19 @@ WORKDIR /app
FROM base as builder

# Copy the Cargo.toml and Cargo.lock files to cache dependencies
COPY ./*/Cargo.toml ./

RUN cargo fetch

COPY ./ ./

# Build the dependencies
RUN cargo build --release
RUN cd wazuh-cert-oauth2 && cargo build --release

FROM base

WORKDIR /app

COPY --from=builder /app/target/release/wazuh-cert-oauth2 /app/wazuh-cert-oauth2
COPY --from=builder /app/wazuh-cert-oauth2/target/release/wazuh-cert-oauth2 /app/wazuh-cert-oauth2

CMD ["/app/wazuh-cert-oauth2"]

0 comments on commit 3e0a876

Please sign in to comment.