name: Build Docker Image on: push: branches: - master jobs: build: runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v4 - name: Login to Gitea registry run: | echo "${{ secrets.REGISTRY_TOKEN }}" | \ docker login gitea.ddns.kawomi.com \ -u joe \ --password-stdin - name: Build the image run: | docker build \ -t gitea.ddns.kawomi.com/joe/webclip:latest \ -t gitea.ddns.kawomi.com/joe/webclip:${{ gitea.sha }} \ . - name: Push the image run: | docker push gitea.ddns.kawomi.com/joe/webclip:latest docker push gitea.ddns.kawomi.com/joe/webclip:${{ gitea.sha }}