name: Docker image build on: push: branches: [master] paths: - app/** - .github/** pull_request: paths: - app/** - .github/** jobs: build-images: name: Build docker image runs-on: ubuntu-latest timeout-minutes: 10 steps: - uses: actions/checkout@v4 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - name: Build test-app run: make build working-directory: app - name: Login to Gitea if: github.event_name == 'push' uses: docker/login-action@v3 with: registry: daemongit.dyndns.info username: just_a_test2 password: ${{ secrets.GIT_REGISTRY_PASSWORD }} - name: Publish test-app run: make publish if: github.event_name == 'push' working-directory: app