Skip to content

Commit

Permalink
Test architecture arm/v6 (part 2)
Browse files Browse the repository at this point in the history
  • Loading branch information
mansuf committed Jun 7, 2024
1 parent 088775f commit 7b83114
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 27 deletions.
54 changes: 27 additions & 27 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,37 +33,37 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_SECRET_TOKEN }}

- name: Build and export to Docker
uses: docker/build-push-action@v5
with:
context: .
load: true
tags: ${{ env.TEST_TAG }}
# - name: Build and export to Docker
# uses: docker/build-push-action@v5
# with:
# context: .
# load: true
# tags: ${{ env.TEST_TAG }}

- name: Build and export to Docker (with optional dependencies)
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.optional
load: true
tags: ${{ env.TEST_OPTIONAL_TAG }}
# - name: Build and export to Docker (with optional dependencies)
# uses: docker/build-push-action@v5
# with:
# context: .
# file: Dockerfile.optional
# load: true
# tags: ${{ env.TEST_OPTIONAL_TAG }}

- name: Test docker image
run: |
docker run --rm ${{ env.TEST_TAG }}
# - name: Test docker image
# run: |
# docker run --rm ${{ env.TEST_TAG }}

- name: Test docker image (with optional dependencies)
run: |
docker run --rm ${{ env.TEST_OPTIONAL_TAG }}
# - name: Test docker image (with optional dependencies)
# run: |
# docker run --rm ${{ env.TEST_OPTIONAL_TAG }}

- name: Update Docker Hub description
# if: startsWith(github.ref, 'refs/tags/') && github.repository == 'mansuf/mangadex-downloader'
uses: peter-evans/dockerhub-description@v4
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_SECRET_TOKEN }}
repository: mansuf/mangadex-downloader
short-description: ${{ github.event.repository.description }}
# - name: Update Docker Hub description
# # if: startsWith(github.ref, 'refs/tags/') && github.repository == 'mansuf/mangadex-downloader'
# uses: peter-evans/dockerhub-description@v4
# with:
# username: ${{ secrets.DOCKER_USERNAME }}
# password: ${{ secrets.DOCKER_SECRET_TOKEN }}
# 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'
Expand Down
1 change: 1 addition & 0 deletions Dockerfile.optional
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ WORKDIR /app

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

# Setup rust
Expand Down

0 comments on commit 7b83114

Please sign in to comment.