diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index c87547d..8d77d35 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -1 +1,35 @@ -name: Build \ No newline at end of file +name: Build Docker Image + +on: + push: + branches: + - "master" + tags: + - "v*" + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v6 + + - name: Login to Gitea Registry + uses: actions/docker-login@v3 + with: + registry: git.local + username: ${{ secrets.REGISTRY_USER }} + password: ${{ secrets.REGISTRY_TOKEN }} + + - name: Configure Docker Meta + uses: actions/docker-metadata@v5 + id: meta + images: phantom/autopkg + + - name: Build & Push Docker Image + uses: actions/docker-build-push@v6 + with: + context: . + push: true + tags: ${{ steps.meta.output.tags }} + labels: ${{ steps.meta.output.labels }}