From 71dbefee171c14446e2e44ed19967d540e189b90 Mon Sep 17 00:00:00 2001 From: Leonard Excoffier <48970393+excoffierleonard@users.noreply.github.com> Date: Sat, 28 Sep 2024 18:31:16 -0400 Subject: [PATCH] ci: added default Docker Build Push file --- .gitea/workflows/dbp.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .gitea/workflows/dbp.yaml diff --git a/.gitea/workflows/dbp.yaml b/.gitea/workflows/dbp.yaml new file mode 100644 index 0000000..86915b9 --- /dev/null +++ b/.gitea/workflows/dbp.yaml @@ -0,0 +1,27 @@ +name: Docker Build and Push + +on: + # push: + branches: + - main + +jobs: + build-and-push: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@main + + - name: Login to Gitea Container Registry + uses: docker/login-action@master + with: + registry: git.jisoonet.com + username: ${{ secrets.REGISTRY_USERNAME }} + password: ${{ secrets.REGISTRY_PASSWORD }} + + - name: Build and push Docker image + uses: docker/build-push-action@master + with: + context: . + push: true + tags: git.jisoonet.com/${{ gitea.repository }}:latest