This commit is contained in:
Adrien Beaudouin 2024-08-01 21:21:01 +02:00
parent adb3594dec
commit 9c66610379

View File

@ -0,0 +1,25 @@
name: Deploy image to Gitea
on:
workflow_call:
jobs:
push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/metadata-action@v5
id: meta
with:
images: ${{ vars.CONTAINER_REGISTRY_URL }}/${{ gitea.repository }}
- uses: docker/login-action@v3
with:
registry: ${{ vars.CONTAINER_REGISTRY_URL }}
username: ${{ vars.CONTAINER_REGISTRY_USERNAME }}
password: ${{ secrets.CONTAINER_REGISTRY_PASSWORD }}
- uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}