github.com/topi314/pogo-icons@v0.0.0-20250403082451-64aa0bf0322a/.github/workflows/docker.yml (about) 1 name: Bot 2 3 on: 4 push: 5 paths-ignore: 6 - '.github/**' 7 - 'README.md' 8 - 'LICENSE' 9 10 jobs: 11 build: 12 runs-on: ubuntu-latest 13 steps: 14 - name: Checkout 15 uses: actions/checkout@v4 16 with: 17 fetch-depth: 0 18 19 - name: Docker meta 20 id: meta 21 uses: docker/metadata-action@v5 22 with: 23 images: | 24 ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }} 25 tags: | 26 type=ref,event=branch 27 type=ref,event=tag 28 type=ref,event=pr 29 type=sha,prefix= 30 31 - name: Set up QEMU 32 uses: docker/setup-qemu-action@v3 33 34 - name: Set up Docker Buildx 35 uses: docker/setup-buildx-action@v3 36 37 - name: Login to GitHub Container Registry 38 uses: docker/login-action@v3 39 with: 40 registry: ghcr.io 41 username: ${{ github.repository_owner }} 42 password: ${{ secrets.GITHUB_TOKEN }} 43 44 - name: Build and push 45 uses: docker/build-push-action@v6 46 with: 47 context: . 48 platforms: linux/amd64,linux/arm/v7,linux/arm64/v8 49 push: true 50 tags: ${{ steps.meta.outputs.tags }} 51 labels: ${{ steps.meta.outputs.labels }} 52 cache-from: type=gha 53 cache-to: type=gha,mode=max