name: Build and Push Docker Image on: push: branches: - main jobs: build: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v4 - name: Login to Gitea Registry run: echo "${{ secrets.REGISTRY_TOKEN }}" | docker login git.timothykim.net -u ${{ gitea.actor }} --password-stdin - name: Build and Push uses: docker/build-push-action@v5 with: context: . push: true tags: git.timothykim.net/timothykim/static:latest - name: Deploy run: | echo "Attempting to reach watchtower endpoint..." curl -v -w "\nHTTP_CODE:%{http_code}\n" \ -H "Authorization: Bearer ${{ secrets.WATCHTOWER_TOKEN }}" \ https://www.timothykim.net/watchtower/v1/update