name: build_latest on: push: branches: [main] jobs: build: runs-on: ubuntu-latest steps: - name: Checkout Code uses: actions/checkout@v3 with: fetch-depth: 0 - name: Install Docker uses: https://github.com/papodaca/install-docker-action@v1 - name: Log into container registry uses: docker/login-action@v2 with: registry: gitea.cheezers.org username: imcompiling password: ${{ secrets.PASSWORD }} - name: Build Docker Image run: docker build -t gitea.cheezers.org/imcompiling/dakiny-bot:latest . - name: Push Docker Image run: docker push gitea.cheezers.org/imcompiling/dakiny-bot:latest - name: Send mail if: failure() uses: https://github.com/dawidd6/action-send-mail@v3 with: to: ${{ secrets.MAIL_TO }} from: Gitea subject: ${{ gitea.repository }} ${{gitea.workflow}} ${{ job.status }} priority: high convert_markdown: true html_body: | ### Job ${{ job.status }} ${{ github.repository }}: [${{ github.ref }}@${{ github.sha }}](${{ github.server_url }}/${{ github.repository }}/actions)