Skip to content

Commit

Permalink
Test architecture arm/v6 (part 1)
Browse files Browse the repository at this point in the history
  • Loading branch information
mansuf committed Jun 7, 2024
1 parent 4e8d667 commit 088775f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 16 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,21 +65,21 @@ jobs:
repository: mansuf/mangadex-downloader
short-description: ${{ github.event.repository.description }}

- name: Build and push
# if: startsWith(github.ref, 'refs/tags/') && github.repository == 'mansuf/mangadex-downloader'
uses: docker/build-push-action@v5
with:
context: .
platforms: |
linux/amd64
linux/arm64
linux/arm/v7
linux/arm/v6
push: true
tags: |
${{ env.LATEST_TAG }}
mansuf/mangadex-downloader:${{ github.ref_name }}
mansuf/mangadex-downloader:v2.10.3
# - name: Build and push
# # if: startsWith(github.ref, 'refs/tags/') && github.repository == 'mansuf/mangadex-downloader'
# uses: docker/build-push-action@v5
# with:
# context: .
# platforms: |
# linux/amd64
# linux/arm64
# linux/arm/v7
# linux/arm/v6
# push: true
# tags: |
# ${{ env.LATEST_TAG }}
# mansuf/mangadex-downloader:${{ github.ref_name }}
# mansuf/mangadex-downloader:v2.10.3

- name: Build and push (with optional dependencies)
# if: startsWith(github.ref, 'refs/tags/') && github.repository == 'mansuf/mangadex-downloader'
Expand All @@ -92,7 +92,7 @@ jobs:
linux/arm64
linux/arm/v7
linux/arm/v6
push: true
# push: true
tags: |
${{ env.LATEST_OPTIONAL_TAG }}
mansuf/mangadex-downloader:${{ github.ref_name }}-optional
Expand Down
4 changes: 4 additions & 0 deletions Dockerfile.optional
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ FROM python:3.11
COPY . /app
WORKDIR /app

# Workaround for arm/v6
RUN export "ARCHITECTURE=$(lscpu | grep Architecture | sed -e 's/Architecture:\s//g')"
RUN if [[ $ARCHITECTURE == "arm/v6" ]]; then echo "arm/v6 architecture"; fi

# Setup rust
RUN apt update && apt install wget
ENV RUSTUP_HOME=/usr/local/rustup \
Expand Down

0 comments on commit 088775f

Please sign in to comment.