Skip to content

Commit

Permalink
Merge pull request #204 from Suwayomi/main
Browse files Browse the repository at this point in the history
test
  • Loading branch information
Robonau committed Jun 21, 2024
2 parents c69a5c0 + f693cb4 commit f10934e
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 40 deletions.
57 changes: 17 additions & 40 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Build

env:
THEMES: "['', 'wintry', 'skeleton', 'crimson', 'gold-nouveau', 'hamlindigo', 'modern', 'rocket', 'sahara', 'seafoam', 'vintage']"

on:
push:
branches: ['Release']
Expand Down Expand Up @@ -53,6 +57,7 @@ jobs:
path: |
./build/
./buildZip/md5sum
retention-days: 1
web:
needs:
- build
Expand Down Expand Up @@ -81,18 +86,7 @@ jobs:
dockerBuilds:
strategy:
matrix:
theme:
- ''
- 'wintry'
- 'skeleton'
- 'crimson'
- 'gold-nouveau'
- 'hamlindigo'
- 'modern'
- 'rocket'
- 'sahara'
- 'seafoam'
- 'vintage'
theme: ${{ fromJSON(github.env.THEMES) }}
needs:
- build
- GenTag
Expand Down Expand Up @@ -125,45 +119,25 @@ jobs:
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- id: string
uses: ASzc/change-string-case-action@v6
with:
string: ${{ github.repository_owner }}/${{ github.event.repository.name }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
platforms: linux/amd64, linux/arm/v6, linux/arm/v7, linux/arm64, linux/386, linux/ppc64le, linux/s390x
context: .
build-args: version=${{ needs.GenTag.outputs.value }}
push: false
outputs: type=docker,dest=/tmp/myimage.tar
outputs: type=docker,dest=/tmp/${{ matrix.theme }}.tar
tags: |
ghcr.io/${{ steps.string.outputs.lowercase }}:latest${{ matrix.theme }},
ghcr.io/${{ steps.string.outputs.lowercase }}:${{ needs.GenTag.outputs.value }}${{ matrix.theme }},
${{ steps.string.outputs.lowercase }}:latest${{ matrix.theme }},
${{ steps.string.outputs.lowercase }}:${{ needs.GenTag.outputs.value }}${{ matrix.theme }},
ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}:latest${{ matrix.theme }},
ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}:${{ needs.GenTag.outputs.value }}${{ matrix.theme }},
${{ github.repository_owner }}/${{ github.event.repository.name }}:latest${{ matrix.theme }},
${{ github.repository_owner }}/${{ github.event.repository.name }}:${{ needs.GenTag.outputs.value }}${{ matrix.theme }},
- uses: actions/upload-artifact@v4
with:
name: build-files-${{ needs.GenTag.outputs.value }}-${{ matrix.theme }}
path: |
/tmp/myimage.tar
/tmp/${{ matrix.theme }}.tar
docker:
strategy:
max-parallel: 1
matrix:
theme:
- ''
- 'wintry'
- 'skeleton'
- 'crimson'
- 'gold-nouveau'
- 'hamlindigo'
- 'modern'
- 'rocket'
- 'sahara'
- 'seafoam'
- 'vintage'
needs:
- build
- GenTag
Expand All @@ -173,8 +147,9 @@ jobs:
- name: get Build files
uses: actions/download-artifact@v4
with:
name: build-files-${{ needs.GenTag.outputs.value }}-${{ matrix.theme }}
name: build-files-${{ needs.GenTag.outputs.value }}-*
path: ./
merge-multiple: true
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
Expand All @@ -188,6 +163,8 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- name: Load ad push image
run: |
docker load --input /myimage.tar
for f in *.tar; do
cat $f | docker load
done
docker push -a ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}
docker push -a ${{ github.repository_owner }}/${{ github.event.repository.name }}
2 changes: 2 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ on:
branches: ['main', 'Release']
paths-ignore:
- '**/README.md'
- '.github/workflows/**.yml'
- '**/default.conf'

jobs:
run-check:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ on:
branches: ['main', 'Release']
paths-ignore:
- '**/README.md'
- '.github/workflows/**.yml'
- '**/default.conf'

jobs:
run-linters:
Expand Down

0 comments on commit f10934e

Please sign in to comment.