enable multiarch
This commit is contained in:
parent
6cf4ebbabd
commit
d40b6c655f
|
@ -55,6 +55,11 @@ jobs:
|
||||||
- run: echo REPO_COMMIT_FULL=$(git --git-dir '.git' --no-pager log --pretty='%H' -n1 HEAD) >> $GITHUB_ENV
|
- run: echo REPO_COMMIT_FULL=$(git --git-dir '.git' --no-pager log --pretty='%H' -n1 HEAD) >> $GITHUB_ENV
|
||||||
- run: echo BUILD_TAG=$(date -d @${REPO_TIMESTAMP} +%y.%m)-${REPO_COMMIT} >> $GITHUB_ENV
|
- run: echo BUILD_TAG=$(date -d @${REPO_TIMESTAMP} +%y.%m)-${REPO_COMMIT} >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- run: apk add --no-cache docker-cli
|
||||||
|
|
||||||
|
- name: setup qemu
|
||||||
|
uses: https://github.com/docker/setup-qemu-action@v2
|
||||||
|
|
||||||
- name: setup buildx
|
- name: setup buildx
|
||||||
uses: https://github.com/docker/setup-buildx-action@v2
|
uses: https://github.com/docker/setup-buildx-action@v2
|
||||||
|
|
||||||
|
@ -72,6 +77,7 @@ jobs:
|
||||||
uses: https://github.com/docker/build-push-action@v4
|
uses: https://github.com/docker/build-push-action@v4
|
||||||
with:
|
with:
|
||||||
push: ${{ !!secrets.REGISTRY_PUSH_ENABLED }}
|
push: ${{ !!secrets.REGISTRY_PUSH_ENABLED }}
|
||||||
|
platforms: linux/amd64
|
||||||
context: .docker/web-nginx
|
context: .docker/web-nginx
|
||||||
tags: |
|
tags: |
|
||||||
registry-rw.fakecake.org/cthulhoo/ttrss-web-nginx:latest
|
registry-rw.fakecake.org/cthulhoo/ttrss-web-nginx:latest
|
||||||
|
@ -82,6 +88,7 @@ jobs:
|
||||||
uses: https://github.com/docker/build-push-action@v4
|
uses: https://github.com/docker/build-push-action@v4
|
||||||
with:
|
with:
|
||||||
push: ${{ !!secrets.REGISTRY_PUSH_ENABLED }}
|
push: ${{ !!secrets.REGISTRY_PUSH_ENABLED }}
|
||||||
|
platforms: linux/amd64
|
||||||
context: .docker/app
|
context: .docker/app
|
||||||
build-contexts:
|
build-contexts:
|
||||||
app-src=.
|
app-src=.
|
||||||
|
@ -105,6 +112,7 @@ jobs:
|
||||||
uses: https://github.com/docker/build-push-action@v4
|
uses: https://github.com/docker/build-push-action@v4
|
||||||
with:
|
with:
|
||||||
push: ${{ !!secrets.REGISTRY_GITHUB_PUSH_ENABLED }}
|
push: ${{ !!secrets.REGISTRY_GITHUB_PUSH_ENABLED }}
|
||||||
|
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||||
context: .docker/web-nginx
|
context: .docker/web-nginx
|
||||||
tags: |
|
tags: |
|
||||||
cthulhoo/ttrss-web-nginx:latest
|
cthulhoo/ttrss-web-nginx:latest
|
||||||
|
@ -115,6 +123,7 @@ jobs:
|
||||||
uses: https://github.com/docker/build-push-action@v4
|
uses: https://github.com/docker/build-push-action@v4
|
||||||
with:
|
with:
|
||||||
push: ${{ !!secrets.REGISTRY_GITHUB_PUSH_ENABLED }}
|
push: ${{ !!secrets.REGISTRY_GITHUB_PUSH_ENABLED }}
|
||||||
|
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||||
context: .docker/app
|
context: .docker/app
|
||||||
build-contexts:
|
build-contexts:
|
||||||
app-src=.
|
app-src=.
|
||||||
|
|
Loading…
Reference in New Issue