Prova aggiunta pipeline CI/CD

This commit is contained in:
La Programmatrice Verde
2025-12-29 23:46:06 +01:00
parent 30832e6cce
commit 6ac8a7d096
4 changed files with 38 additions and 2 deletions

View File

@@ -0,0 +1,25 @@
name: Compila e pubblica sul registro integrato
on:
push:
branches:
- 'main'
workflow_dispatch:
jobs:
Build-Docker-Image:
runs-on: ubuntu-latest
container: catthehacker/ubuntu-act:latest
steps:
- name: Login to Docker Registry
run: echo "${{ secrets.REGISTRYTOKEN }}" | docker login "${{ vars.REGISTRY_URL }}" -u "${{ github.repository_owner }}" --password-stdin
- name: Checkout Code
uses: actions/checkout@v4
- name: Build Docker image
run: |
docker build -t ${{ github.repository }}:latest .
- name: Push Docker image
run: |
docker push "${{ github.repository }}:latest"