Add CI/CD
All checks were successful
Build, Push and Run Container / build (push) Successful in 44s

This commit is contained in:
2025-08-12 19:16:59 +02:00
parent 99b2bcf886
commit ededc394fa

View File

@@ -0,0 +1,33 @@
name: Build, Push and Run Container
on:
push:
branches: [main]
jobs:
build:
runs-on: ap-host
steps:
- name: Sanity check -- docker & node
run: |
which docker && docker --version
which node && node --version || echo "node not found"
- name: Checkout source code
uses: actions/checkout@v4
- name: Docker login (private registry)
run: |
docker login docker-registry.automatic-parking.dev \
--username server --password IXJHwwQK4ufKkhV
- name: Build Docker image
run: |
docker build \
-f Dockerfile \
-t docker-registry.automatic-parking.dev/runner:latest \
.
- name: Push to registry
run: docker push docker-registry.automatic-parking.dev/runner:latest