2023-05-01 19:59:39 +02:00
|
|
|
name: Build and Deploy
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
Deploy:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
container:
|
|
|
|
image: catthehacker/ubuntu:act-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Use Nodejs
|
|
|
|
uses: actions/setup-node@v3
|
|
|
|
with:
|
|
|
|
node-version: 18
|
2023-05-01 20:02:39 +02:00
|
|
|
- run: cd frontend
|
2023-05-01 19:59:39 +02:00
|
|
|
- run: npm install
|
|
|
|
- run: npm run build
|
|
|
|
|
|
|
|
- uses: docker/setup-qemu-action@v2
|
|
|
|
- uses: docker/setup-buildx-action@v2
|
|
|
|
|
|
|
|
- uses: docker/login-action@v2
|
|
|
|
with:
|
|
|
|
registry: gitea.xeovalyte.dev
|
|
|
|
username: ${{ secrets.USERNAME }}
|
|
|
|
password: ${{ secrets.PASSWORD }}
|
|
|
|
|
2023-05-01 20:02:39 +02:00
|
|
|
- run: cd ..
|
|
|
|
|
2023-05-01 19:59:39 +02:00
|
|
|
- run: docker buildx build -t gitea.xeovalyte.dev/xeovalyte/wrbapp:latest-arm --load --platform=linux/arm64 .
|
|
|
|
- run: docker push gitea.xeovalyte.dev/xeovalyte/wrbapp:latest-arm
|
|
|
|
|
|
|
|
- run: docker buildx build -t gitea.xeovalyte.dev/xeovalyte/wrbapp:latest --load --platform=linux/amd64 .
|
|
|
|
- run: docker push gitea.xeovalyte.dev/xeovalyte/wrbapp:latest
|