Added workflow
Some checks failed
Build and Deploy / Deploy (push) Failing after 13s

This commit is contained in:
Xeovalyte 2023-11-28 16:17:24 +01:00
parent 92878dd50a
commit 2f86fc30c3
Signed by: xeovalyte
GPG Key ID: 4ECA38E66D75674B

34
.gitea/workflows/ci.yml Normal file
View File

@ -0,0 +1,34 @@
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
- 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 }}
- run: docker buildx build -t gitea.xeovalyte.dev/xeovalyte/portfolio:latest --load --platform=linux/amd64 .
- run: docker push gitea.xeovalyte.dev/xeovalyte/portfolio:latest
- run: docker buildx build -t gitea.xeovalyte.dev/xeovalyte/portfolio:latest-arm --load --platform=linux/arm64 .
- run: docker push gitea.xeovalyte.dev/xeovalyte/portfolio:latest-arm