|
31 | 31 | - name: Set up Docker Buildx |
32 | 32 | id: buildx |
33 | 33 | uses: docker/setup-buildx-action@master |
| 34 | + - name: Generate image metadata |
| 35 | + id: meta |
| 36 | + uses: docker/metadata-action@v6 |
| 37 | + with: |
| 38 | + images: ghcr.io/${{ github.repository }} |
| 39 | + tags: type=raw,value=${{ matrix.derivate }} |
| 40 | + flavor: latest=false |
| 41 | + labels: | |
| 42 | + org.opencontainers.image.title=HTTPS ${{ matrix.derivate }} proxy |
| 43 | + org.opencontainers.image.description=Docker image for HTTPS ${{ matrix.derivate }} proxy |
| 44 | + org.opencontainers.image.source=https://github.com/${{ github.repository }} |
| 45 | + org.opencontainers.image.version=${{ matrix.derivate }}-${{ github.sha }} |
| 46 | + org.opencontainers.image.revision=${{ github.sha }} |
34 | 47 | - name: Build HTTPS ${{ matrix.derivate }} proxy (${{ matrix.platform }}) |
35 | 48 | uses: docker/build-push-action@v7 |
36 | 49 | with: |
|
39 | 52 | builder: ${{ steps.buildx.outputs.name }} |
40 | 53 | context: context |
41 | 54 | platforms: ${{ matrix.platform }} |
42 | | - labels: | |
43 | | - org.opencontainers.image.title=HTTPS ${{ matrix.derivate }} proxy |
44 | | - org.opencontainers.image.description=Docker image for HTTPS ${{ matrix.derivate }} proxy |
45 | | - org.opencontainers.image.source=https://github.com/${{ github.repository }} |
46 | | - org.opencontainers.image.version=${{ matrix.derivate }}-${{ github.sha }} |
47 | | - org.opencontainers.image.revision=${{ github.sha }} |
48 | | - tags: | |
49 | | - ghcr.io/${{ github.repository }}:${{ matrix.derivate }} |
| 55 | + labels: ${{ steps.meta.outputs.labels }} |
| 56 | + annotations: ${{ steps.meta.outputs.annotations }} |
| 57 | + tags: ${{ steps.meta.outputs.tags }} |
50 | 58 | load: ${{ (matrix.platform == 'linux/amd64') && matrix.derivate == 'base' }} |
51 | 59 | - uses: e1himself/[email protected] |
52 | 60 | if: ${{ (matrix.platform == 'linux/amd64') && matrix.derivate == 'base' }} |
|
0 commit comments