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