Files
NetBird-UptimeKuma/.gitea/workflows/crea-container.yaml
La Programmatrice Verde 6c4cd037f3 Correzione label pipeline
2025-12-29 23:47:30 +01:00

25 lines
706 B
YAML

name: Compila e pubblica sul registro integrato
on:
push:
branches:
- 'main'
workflow_dispatch:
jobs:
Build-Docker-Image:
runs-on: linux_amd64:host
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"