|
16 | 16 | jobs:
|
17 | 17 | build-containers:
|
18 | 18 | runs-on: ubuntu-latest
|
19 |
| - name: Build ${{ matrix.variant }} containers |
| 19 | + name: Build ${{ matrix.variant }} container |
20 | 20 | permissions:
|
21 | 21 | contents: read
|
22 | 22 | packages: write
|
@@ -51,57 +51,29 @@ jobs:
|
51 | 51 | username: ${{ github.actor }}
|
52 | 52 | password: ${{ secrets.GITHUB_TOKEN }}
|
53 | 53 |
|
54 |
| - # Build Fakemachine containers |
55 |
| - - name: Extract metadata (tags, labels) for Fakemachine Docker image |
56 |
| - id: meta-fakemachine |
| 54 | + - name: Extract metadata (tags, labels) for Docker image |
| 55 | + id: meta |
57 | 56 | uses: docker/metadata-action@v5
|
58 | 57 | with:
|
59 |
| - images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/fakemachine-${{ matrix.variant }} |
| 58 | + images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/${{ matrix.variant }} |
60 | 59 | tags: |
|
61 | 60 | "type=ref,event=branch"
|
62 | 61 | "type=ref,suffix=-{{sha}},event=branch"
|
63 | 62 | "type=ref,suffix=-{{date 'YYYYMMDD'}},event=branch"
|
64 | 63 | "type=ref,event=tag"
|
65 | 64 | "type=ref,event=pr"
|
66 | 65 |
|
67 |
| - - name: Build and push Fakemachine Docker image |
| 66 | + - name: Build and push Docker image |
68 | 67 | uses: docker/build-push-action@v5
|
69 | 68 | with:
|
70 | 69 | context: .
|
71 |
| - file: Dockerfile.fakemachine-${{ matrix.dockerfile }} |
| 70 | + file: Dockerfile.${{ matrix.dockerfile }} |
72 | 71 | push: ${{ github.event_name != 'pull_request' }}
|
73 |
| - tags: ${{ steps.meta-fakemachine.outputs.tags }} |
74 |
| - labels: ${{ steps.meta-fakemachine.outputs.labels }} |
| 72 | + tags: ${{ steps.meta.outputs.tags }} |
| 73 | + labels: ${{ steps.meta.outputs.labels }} |
75 | 74 | build-args: |
|
76 | 75 | VARIANT=${{ matrix.variant }}
|
77 | 76 |
|
78 |
| - # Build Debos containers (based on Fakemachine container) |
79 |
| - - name: Extract metadata (tags, labels) for Debos Docker image |
80 |
| - id: meta-debos |
81 |
| - uses: docker/metadata-action@v5 |
82 |
| - with: |
83 |
| - images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/debos-${{ matrix.variant }} |
84 |
| - tags: | |
85 |
| - "type=ref,event=branch" |
86 |
| - "type=ref,suffix=-{{sha}},event=branch" |
87 |
| - "type=ref,suffix=-{{date 'YYYYMMDD'}},event=branch" |
88 |
| - "type=ref,event=tag" |
89 |
| - "type=ref,event=pr" |
90 |
| -
|
91 |
| - - name: Build and push Debos Docker image |
92 |
| - uses: docker/build-push-action@v5 |
93 |
| - with: |
94 |
| - context: . |
95 |
| - file: Dockerfile.debos-${{ matrix.dockerfile }} |
96 |
| - push: ${{ github.event_name != 'pull_request' }} |
97 |
| - tags: ${{ steps.meta-debos.outputs.tags }} |
98 |
| - labels: ${{ steps.meta-debos.outputs.labels }} |
99 |
| - build-args: | |
100 |
| - VARIANT=${{ matrix.variant }} |
101 |
| - BASE_REGISTRY=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} |
102 |
| - BASE_IMAGE=fakemachine-${{ matrix.variant }} |
103 |
| - BASE_TAG=${{ steps.meta-fakemachine.outputs.version }} |
104 |
| -
|
105 | 77 | # Job to key success status against
|
106 | 78 | allgreen:
|
107 | 79 | name: allgreen
|
|
0 commit comments