8282 with :
8383 images : docker.io/${{ secrets.DOCKERHUB_USERNAME || env.AUTHOR }}/${{ github.event.repository.name }}
8484
85+ - name : Extract Docker metadata from ${{ env.REGISTRY }}
86+ id : meta-full
87+ uses : docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v5.0.0
88+ with :
89+ images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
90+ flavor : |
91+ suffix=-full,onlatest=true
92+
93+ - name : Extract Docker metadata from Docker Hub
94+ id : meta_dockerhub-full
95+ uses : docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v5.0.0
96+ with :
97+ images : docker.io/${{ secrets.DOCKERHUB_USERNAME || env.AUTHOR }}/${{ github.event.repository.name }}
98+ flavor : |
99+ suffix=-full,onlatest=true
100+
85101 # Build and push Docker image with Buildx (don't push on PR)
86102 # https://github.com/docker/build-push-action
87103 - name : Build and push Docker image
@@ -99,6 +115,21 @@ jobs:
99115 cache-from : type=gha
100116 cache-to : type=gha,mode=max
101117
118+ - name : Build and push Docker image with api_dump.sql
119+ id : build-and-push-full
120+ uses : docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0
121+ with :
122+ context : .
123+ push : ${{ github.event_name != 'pull_request' }}
124+ tags : |
125+ ${{ steps.meta-full.outputs.tags }}
126+ ${{ steps.meta_dockerhub-full.outputs.tags }}
127+ labels : ${{ steps.meta.outputs.labels }}
128+ build-args : |
129+ BUILDTYPE=full
130+ cache-from : type=gha
131+ cache-to : type=gha,mode=max
132+
102133 # Sign the resulting Docker image digest except on PRs.
103134 # This will only write to the public Rekor transparency log when the Docker
104135 # repository is public to avoid leaking data. If you would like to publish
@@ -111,6 +142,8 @@ jobs:
111142 TAGS : |
112143 ${{ steps.meta.outputs.tags }}
113144 ${{ steps.meta_dockerhub.outputs.tags }}
145+ ${{ steps.meta-full.outputs.tags }}
146+ ${{ steps.meta_dockerhub-full.outputs.tags }}
114147 DIGEST : |
115148 ${{ steps.build-and-push.outputs.digest }}
116149 # This step uses the identity token to provision an ephemeral certificate
0 commit comments