Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arm64 builds please #84

Open
necrose99 opened this issue Oct 22, 2024 · 0 comments
Open

arm64 builds please #84

necrose99 opened this issue Oct 22, 2024 · 0 comments

Comments

@necrose99
Copy link

#.github/workflows/arm-build.yml
name: Build iVentoy for ARM

on:
  push:
    branches:
      - main
  pull_request:
    branches:
      - main

jobs:
  build-arm:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        arch: [arm64, armv7]
    steps:
      - name: Checkout code
        uses: actions/checkout@v3

      - name: Set up QEMU
        uses: docker/setup-qemu-action@v3

      - name: Set up Docker Buildx
        uses: docker/setup-buildx-action@v3

      - name: Build iVentoy for ${{ matrix.arch }}
        run: |
          docker buildx build --platform linux/${{ matrix.arch }} -t iventoy:${{ matrix.arch }} .

      - name: Push Docker Image
        env:
          DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
          DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
        run: |
          docker login -u "$DOCKERHUB_USERNAME" -p "$DOCKERHUB_TOKEN"
          docker push iventoy:${{ matrix.arch }}

#am64-dockerfile
# Example Dockerfile for iVentoy
FROM ubuntu:20.04

# Install necessary dependencies
RUN apt-get update && apt-get install -y \
    build-essential \
    gcc \
    make \
    curl \
    libssl-dev \
    # Add other dependencies here \
    && apt-get clean

# Copy iVentoy source code into the image
COPY . /opt/iventoy

WORKDIR /opt/iventoy

# Build the iVentoy binaries
RUN make

# Set up entrypoint for running iVentoy
ENTRYPOINT ["/opt/iventoy/iventoy.sh"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant