|
35 | 35 |
|
36 | 36 | jobs:
|
37 | 37 |
|
| 38 | + |
| 39 | + # # |
| 40 | + # Job > Docker Release > Github |
| 41 | + # # |
| 42 | + |
| 43 | + docker-release-github: |
| 44 | + name: >- |
| 45 | + 📦 Release › Github |
| 46 | + runs-on: ubuntu-latest |
| 47 | + permissions: |
| 48 | + contents: read |
| 49 | + packages: write |
| 50 | + attestations: write |
| 51 | + id-token: write |
| 52 | + steps: |
| 53 | + |
| 54 | + # # |
| 55 | + # Release > Github > Start |
| 56 | + # # |
| 57 | + |
| 58 | + - name: "✅ Start" |
| 59 | + id: task_release_gh_start |
| 60 | + run: | |
| 61 | + echo "Starting Github docker release" |
| 62 | +
|
| 63 | + # # |
| 64 | + # Release > Github > Checkout |
| 65 | + # # |
| 66 | + |
| 67 | + - name: "☑️ Checkout" |
| 68 | + id: task_release_gh_checkout |
| 69 | + uses: actions/checkout@v4 |
| 70 | + with: |
| 71 | + fetch-depth: 0 |
| 72 | + |
| 73 | + # # |
| 74 | + # Release > Github > QEMU |
| 75 | + # # |
| 76 | + |
| 77 | + - name: "⚙️ Set up QEMU" |
| 78 | + id: task_release_gh_qemu |
| 79 | + uses: docker/setup-qemu-action@v3 |
| 80 | + |
| 81 | + # # |
| 82 | + # Release > Github > Setup BuildX |
| 83 | + # # |
| 84 | + |
| 85 | + - name: "⚙️ Setup Buildx" |
| 86 | + id: task_release_gh_buildx |
| 87 | + uses: docker/setup-buildx-action@v3 |
| 88 | + with: |
| 89 | + version: latest |
| 90 | + driver-opts: 'image=moby/buildkit:v0.10.5' |
| 91 | + |
| 92 | + # # |
| 93 | + # Release > Github > Registry Login |
| 94 | + # # |
| 95 | + |
| 96 | + - name: "⚙️ Login to DockerHub" |
| 97 | + id: task_release_gh_registry |
| 98 | + if: github.event_name != 'pull_request' |
| 99 | + uses: docker/login-action@v3 |
| 100 | + with: |
| 101 | + registry: ghcr.io |
| 102 | + username: ${{ github.actor }} |
| 103 | + password: ${{ secrets.SELF_TOKEN_CL }} |
| 104 | + |
| 105 | + # # |
| 106 | + # Release > Github > Meta |
| 107 | + # # |
| 108 | + |
| 109 | + - name: "🔨 Docker meta" |
| 110 | + id: task_release_gh_meta |
| 111 | + uses: docker/metadata-action@v3 |
| 112 | + with: |
| 113 | + images: | |
| 114 | + ghcr.io/Aetherinox/thetvapp-docker |
| 115 | + tags: | |
| 116 | + type=raw,value=latest,enable=${{ endsWith(github.ref, 'main') }} |
| 117 | + type=ref,event=tag |
| 118 | +
|
| 119 | + # # |
| 120 | + # Release > Github > Build and Push |
| 121 | + # # |
| 122 | + |
| 123 | + - name: "📦 Build and push" |
| 124 | + id: task_release_gh_push |
| 125 | + uses: docker/build-push-action@v3 |
| 126 | + with: |
| 127 | + context: . |
| 128 | + platforms: linux/amd64 |
| 129 | + push: ${{ github.event_name != 'pull_request' }} |
| 130 | + tags: ${{ steps.task_release_gh_meta.outputs.tags }} |
| 131 | + labels: ${{ steps.task_release_gh_meta.outputs.labels }} |
| 132 | + |
38 | 133 | # #
|
39 | 134 | # Job > Docker Release > Github
|
40 | 135 | # #
|
|
0 commit comments