diff --git a/.gitea/workflows/image.yaml b/.gitea/workflows/image.yaml new file mode 100644 index 0000000..e11fe95 --- /dev/null +++ b/.gitea/workflows/image.yaml @@ -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 }}