portfolio/.gitea/workflows/ci.yml

43 lines
1.2 KiB
YAML
Raw Normal View History

2023-11-28 16:17:24 +01: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-11-28 16:19:40 +01:00
2023-11-28 16:17:24 +01:00
- run: npm install
2023-11-28 16:19:40 +01:00
working-directory: ./website
2023-11-28 16:17:24 +01:00
- run: npm run build
2023-11-28 16:19:40 +01:00
working-directory: ./website
2023-11-28 16:17:24 +01:00
- 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 .
2023-11-28 16:19:40 +01:00
working-directory: ./website
2023-11-28 16:17:24 +01:00
- run: docker push gitea.xeovalyte.dev/xeovalyte/portfolio:latest
2023-11-28 16:19:40 +01:00
working-directory: ./website
2023-11-28 16:17:24 +01:00
- run: docker buildx build -t gitea.xeovalyte.dev/xeovalyte/portfolio:latest-arm --load --platform=linux/arm64 .
2023-11-28 16:19:40 +01:00
working-directory: ./website
2023-11-28 16:17:24 +01:00
- run: docker push gitea.xeovalyte.dev/xeovalyte/portfolio:latest-arm
2023-11-28 16:19:40 +01:00
working-directory: ./website
2023-11-28 16:17:24 +01:00