|
22 | 22 | DEFAULT_TAG: "latest" |
23 | 23 |
|
24 | 24 | concurrency: |
25 | | - group: ${{ github.workflow }}-${{ github.ref || github.run_id }}-${{ inputs.brand_name}}-${{ inputs.stream_name }} |
| 25 | + group: ${{ github.workflow }}-${{ github.ref || github.run_id }} |
26 | 26 | cancel-in-progress: true |
27 | 27 |
|
28 | 28 | jobs: |
|
59 | 59 | - name: Maximize build space |
60 | 60 | uses: ublue-os/remove-unwanted-software@v9 |
61 | 61 |
|
62 | | - - name: Mount BTRFS for podman storage |
63 | | - id: container-storage-action |
64 | | - uses: ublue-os/container-storage-action@main |
65 | | - continue-on-error: true |
66 | | - with: |
67 | | - target-dir: /var/lib/containers |
68 | | - mount-opts: compress-force=zstd:2 |
69 | | - |
70 | 62 | - name: Get current date |
71 | 63 | id: date |
72 | 64 | run: | |
@@ -117,27 +109,6 @@ jobs: |
117 | 109 | IMAGE_VENDOR=${{ github.repository_owner }} |
118 | 110 | oci: false |
119 | 111 |
|
120 | | - # Rechunk for optimized OCI layers |
121 | | - - name: Run Rechunker |
122 | | - id: rechunk |
123 | | - |
124 | | - if: github.event_name != 'pull_request' |
125 | | - with: |
126 | | - rechunk: 'ghcr.io/hhd-dev/rechunk:v1.0.3' |
127 | | - ref: "localhost/${{ env.IMAGE_NAME }}:${{ env.DEFAULT_TAG }}${{ matrix.variant.tag_suffix }}" |
128 | | - prev-ref: "${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.DEFAULT_TAG }}${{ matrix.variant.tag_suffix }}" |
129 | | - skip_compression: true |
130 | | - labels: ${{ steps.metadata.outputs.labels }} |
131 | | - |
132 | | - - name: Load rechunked image and tag |
133 | | - if: github.event_name != 'pull_request' |
134 | | - run: | |
135 | | - IMAGE=$(podman pull ${{ steps.rechunk.outputs.ref }}) |
136 | | - sudo rm -rf ${{ steps.rechunk.outputs.output }} |
137 | | - for tag in ${{ steps.metadata.outputs.tags }}; do |
138 | | - podman tag $IMAGE ${{ env.IMAGE_NAME }}:$tag |
139 | | - done |
140 | | -
|
141 | 112 | - name: Login to GitHub Container Registry |
142 | 113 | uses: docker/login-action@v3 |
143 | 114 | if: github.event_name != 'pull_request' && github.ref == format('refs/heads/{0}', github.event.repository.default_branch) |
|
0 commit comments