24 lines
720 B
YAML
24 lines
720 B
YAML
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
|