summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2023-03-25 23:22:39 +0300
committerAndrew Dolgov <[email protected]>2023-03-25 23:33:34 +0300
commit5bf7da5577570bdb01d84043c71a45174c1bd08a (patch)
treebaf5230509ca03d53ca17a0c9c0debdf7b419331
parent7c7c79614108a16cba8f9d65d58baa009977e9e0 (diff)
ci: qemu
-rw-r--r--.gitea/workflows/build.yml8
1 files changed, 8 insertions, 0 deletions
diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml
index b1784a9..47f6c1c 100644
--- a/.gitea/workflows/build.yml
+++ b/.gitea/workflows/build.yml
@@ -29,6 +29,11 @@ jobs:
- 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: apk add --no-cache docker-cli
+
+ - name: setup qemu
+ uses: https://github.com/docker/setup-qemu-action@v2
+
- name: setup buildx
uses: https://github.com/docker/setup-buildx-action@v2
@@ -46,6 +51,7 @@ jobs:
uses: https://github.com/docker/build-push-action@v4
with:
push: ${{ !!secrets.REGISTRY_PUSH_ENABLED }}
+ platforms: linux/amd64,linux/arm64
context: .docker/web-nginx
tags: |
registry-rw.fakecake.org/cthulhoo/the-epube-web-nginx:latest
@@ -56,6 +62,7 @@ jobs:
uses: https://github.com/docker/build-push-action@v4
with:
push: ${{ !!secrets.REGISTRY_PUSH_ENABLED }}
+ platforms: linux/amd64,linux/arm64
context: .docker/dict
tags: |
registry-rw.fakecake.org/cthulhoo/the-epube-dict:latest
@@ -66,6 +73,7 @@ jobs:
uses: https://github.com/docker/build-push-action@v4
with:
push: ${{ !!secrets.REGISTRY_PUSH_ENABLED }}
+ platforms: linux/amd64,linux/arm64
context: .docker/app
build-contexts:
app-src=.