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