name: Build and push Docker image on: push: branches: - master jobs: build-and-publish: runs-on: docker steps: - uses: actions/checkout@v4 - name: Build uses: https://codeberg.org/umglurf/kaniko-action@main with: cache: true cache_repo: ${{ secrets.DOCKER_REGISTRY }}/${{ github.repository }}/cache credentials: | ${{ secrets.DOCKER_REGISTRY }}=${{ secrets.DOCKER_USERNAME }}:${{ secrets.DOCKER_PASSWORD }} destinations: | ${{ secrets.DOCKER_REGISTRY }}/${{ github.repository }}:latest push: 'true'