diff --git a/.gitea/workflows/publish.yaml b/.gitea/workflows/publish.yaml new file mode 100644 index 0000000..c53ff51 --- /dev/null +++ b/.gitea/workflows/publish.yaml @@ -0,0 +1,37 @@ +name: publish + +on: + workflow_dispatch: + push: + branches: + - master + tags: + - "v*" + +jobs: + build-and-publish: + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v6 + + - name: Construct image metadata from commit + id: meta + uses: docker/metadata-action@v5 + with: + images: gentoo/pkgdev-docker + + - name: login to registry + uses: docker/login-action@v3 + with: + registry: git.ratigorsk-12.ru + username: ${{github.actor}} + password: ${{secrets.GITEA_TOKEN}} + + - name: Build and push + uses: docker/build-push-action@v6 + with: + context: . + push: ${{github.event_name != 'pull_request'}} + tags: ${{steps.meta.outputs.tags}} + labels: ${{steps.meta.outputs.labels}}