extract buiild step to github runner

This commit is contained in:
2026-03-02 21:48:52 +01:00
parent 4c8c42baf3
commit cf8210550b
2 changed files with 15 additions and 18 deletions

View File

@@ -5,19 +5,26 @@ on:
branches: [ "master" ]
jobs:
build:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
cache: 'npm'
- name: Install and Build
run: |
npm ci
npm run build
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
driver-opts: network=host
buildkitd-flags: '--allow-insecure-entitlement network.host'
- name: Login to Private Registry
uses: docker/login-action@v3
with:
@@ -30,8 +37,6 @@ jobs:
with:
context: .
push: true
network: host
allow: network.host
tags: |
docker.illegalesachen.download/repository/astro-homepage:latest
docker.illegalesachen.download/repository/astro-homepage:${{ github.sha }}