This commit is contained in:
MSVstudios 2026-03-16 14:59:50 +01:00
commit 6d0d7387ab
2 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,23 @@
name: Test Build and Push to Harbor
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Login to Harbor
uses: docker/login-action@v3
with:
registry: reg.naturareel.com # Inserisci l'URL del tuo Harbor
username: ${{ secrets.HARBOR_USERNAME }} # Assicurati di aver impostato anche questo secret su Gitea
password: ${{ secrets.HARBOR_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: reg.naturareel.com/artchive21/test-build:latest # Inserisci URL, progetto Harbor e nome immagine

2
Dockerfile Normal file
View File

@ -0,0 +1,2 @@
FROM alpine:latest
CMD ["echo", "Hello Harbor!"]