Skip to content

Commit 023b956

Browse files
committed
Gitlab actions
1 parent 85e71ba commit 023b956

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.github/workflows/deploy.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@ jobs:
4141
username: ${{ secrets.DOCKER_USERNAME }}
4242
password: ${{ secrets.DOCKER_PASSWORD }}
4343

44+
- name: Set up QEMU
45+
uses: docker/setup-qemu-action@v2
46+
47+
- name: Set up Docker Buildx
48+
uses: docker/setup-buildx-action@v2
49+
with:
50+
use: linux/amd64,linux/arm64
4451

4552
- name: Build and push
4653
uses: docker/build-push-action@v2

deploy.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ npm run build
88

99
cd ..
1010

11-
mkdir -p ~/.gerev/.buildx-cache
11+
mkdir -p $HOME/.gerev/.buildx-cache
1212

1313
sudo docker buildx create --use
1414
sudo docker buildx build --platform linux/amd64,linux/arm64 \
15-
--cache-from type=local,src=~/.gerev/.buildx-cache \
16-
--cache-to type=local,dest=~/.gerev/.buildx-cache \
15+
--cache-from type=local,src=$HOME/.gerev/.buildx-cache \
16+
--cache-to type=local,dest=$HOME/.gerev/.buildx-cache \
1717
-t gerev/gerev:$VERSION . \
1818
-t gerev/gerev:latest --push

0 commit comments

Comments
 (0)