initial
This commit is contained in:
commit
6d0d7387ab
|
|
@ -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
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
FROM alpine:latest
|
||||
CMD ["echo", "Hello Harbor!"]
|
||||
Loading…
Reference in New Issue