name: Docker on: schedule: - cron: '0 6 * * 0' push: branches: [ "main" ] tags: [ 'v*.*.*' ] pull_request: branches: [ "main" ] env: # Use docker.io or ghcr.io REGISTRY: ghcr.io IMAGE_NAME: ${{ github.user }} IMAGE: "gitea-actions-repos-compare" jobs: build: runs-on: ubuntu-latest permissions: contents: read packages: write id-token: write steps: - name: Checkout repository uses: actions/checkout@v4 - name: Log into registry ${{ env.REGISTRY }} uses: docker/login-action@v3 with: registry: ${{ env.REGISTRY }} username: ${{ secrets.GH_USER }} password: ${{ secrets.GH_TOKEN }} - name: Build Docker image id: build run: | echo "1: ${{ env.REGISTRY }} - 2:${{ env.IMAGE_NAME }} - 3:${{ env.IMAGE }}"