my-portfolio/.gitea/workflows/node-build.yaml
ChrQR a8ad93210a
Some checks are pending
Node.js CI / build_image (push) Blocked by required conditions
- Changed portfolio categories to contain more projects.
- Changed gitea workflow to only build to docker
2024-05-17 21:14:25 +02:00

35 lines
941 B
YAML

name: Node.js CI
on: [push]
jobs:
# build_app:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - name: Use Node.js
# uses: actions/setup-node@v4
# with:
# node-version: '20.x'
# - run: npm ci
# - run: npm run build --production --if-present
build_image:
needs: build_app
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to gitea registry
uses: docker/login-action@v3
with:
registry: gitea.rannes.dev
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
push: true
tags: gitea.rannes.dev/rannes.dev/my-portfolio:latest