From 6d0d7387abcc43a473a398db2f3e2c375259cdc9 Mon Sep 17 00:00:00 2001 From: MSVstudios <98731643+MSVstudios@users.noreply.github.com> Date: Mon, 16 Mar 2026 14:59:50 +0100 Subject: [PATCH] initial --- .gitea/workflows/test-build.yaml | 23 +++++++++++++++++++++++ Dockerfile | 2 ++ 2 files changed, 25 insertions(+) create mode 100644 .gitea/workflows/test-build.yaml create mode 100644 Dockerfile diff --git a/.gitea/workflows/test-build.yaml b/.gitea/workflows/test-build.yaml new file mode 100644 index 0000000..24ed8f3 --- /dev/null +++ b/.gitea/workflows/test-build.yaml @@ -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 diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ef6db9b --- /dev/null +++ b/Dockerfile @@ -0,0 +1,2 @@ +FROM alpine:latest +CMD ["echo", "Hello Harbor!"] \ No newline at end of file