Add dockerfile and build action
All checks were successful
Build / build (push) Successful in 38s

This commit is contained in:
2025-01-18 10:31:13 +01:00
parent 09f5c58829
commit 60f7fe858b
5 changed files with 85 additions and 7 deletions

31
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,31 @@
name: Build
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
lfs: true
- uses: docker/setup-buildx-action@v1
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: code.smartyellow.net
username: ${{ github.actor }}
password: ${{ secrets.PACKAGE_TOKEN }}
- name: Build
run: |
docker build . -t code.smartyellow.net/romein/hpg-site
- name: Push
run: |
docker push code.smartyellow.net/romein/hpg-site