|
23 | 23 |
|
24 | 24 |
|
25 | 25 | jobs: |
26 | | - prepare: |
| 26 | + build: |
27 | 27 |
|
28 | 28 | runs-on: ubuntu-latest |
29 | 29 | permissions: |
@@ -69,21 +69,21 @@ jobs: |
69 | 69 | # Extract metadata (tags, labels) for Docker |
70 | 70 | # https://github.com/docker/metadata-action |
71 | 71 | - name: Extract Docker metadata |
72 | | - id: kubero-meta |
| 72 | + id: meta |
73 | 73 | uses: docker/metadata-action@v4 |
74 | 74 | with: |
75 | | - images: ${{ env.REGISTRY }}/${{ github.repository }}/kubero |
| 75 | + images: ${{ env.REGISTRY }}/${{ github.repository }} |
76 | 76 |
|
77 | 77 | # Build and push Docker image with Buildx (don't push on PR) |
78 | 78 | # https://github.com/docker/build-push-action |
79 | 79 | - name: Build and push Docker image |
80 | | - id: kubero-build-and-push |
| 80 | + id: build-and-push |
81 | 81 | uses: docker/build-push-action@v3 |
82 | 82 | with: |
83 | 83 | context: . |
84 | 84 | push: ${{ github.event_name != 'pull_request' }} |
85 | | - tags: ${{ steps.kubero-meta.outputs.tags }} |
86 | | - labels: ${{ steps.kubero-meta.outputs.labels }} |
| 85 | + tags: ${{ steps.meta.outputs.tags }} |
| 86 | + labels: ${{ steps.meta.outputs.labels }} |
87 | 87 |
|
88 | 88 | # Sign the resulting Docker image digest except on PRs. |
89 | 89 | # This will only write to the public Rekor transparency log when the Docker |
|
96 | 96 | COSIGN_EXPERIMENTAL: "true" |
97 | 97 | # This step uses the identity token to provision an ephemeral certificate |
98 | 98 | # against the sigstore community Fulcio instance. |
99 | | - run: cosign sign ${{ steps.kubero-meta.outputs.tags }}@${{ steps.kubero-build-and-push.outputs.digest }} |
| 99 | + run: cosign sign ${{ steps.meta.outputs.tags }}@${{ steps.build-and-push.outputs.digest }} |
0 commit comments