|
19 | 19 |
|
20 | 20 | jobs:
|
21 | 21 | build:
|
| 22 | + strategy: |
| 23 | + fail-fast: true |
| 24 | + max-parallel: 1 |
| 25 | + matrix: |
| 26 | + variant: |
| 27 | + - manyfold |
| 28 | + - manyfold-solo |
22 | 29 | runs-on: ubuntu-latest
|
23 | 30 | permissions:
|
24 | 31 | contents: read # for checkout
|
|
32 | 39 | id: docker_meta
|
33 | 40 | uses: docker/metadata-action@v5
|
34 | 41 | with:
|
35 |
| - images: ghcr.io/${{ github.repository }} |
| 42 | + images: ghcr.io/${{ github.repository_owner }}/${{ matrix.variant }} |
36 | 43 | tags: |
|
37 | 44 | type=raw,value=${{ inputs.tag }},event=workflow_dispatch
|
38 | 45 | type=schedule,pattern=nightly
|
|
56 | 63 | with:
|
57 | 64 | project: bsbhgkfhgc
|
58 | 65 | context: .
|
59 |
| - file: ./docker/manyfold.dockerfile |
| 66 | + file: ./docker/${{ matrix.variant }}.dockerfile |
60 | 67 | platforms: linux/amd64,linux/arm64
|
61 | 68 | push: ${{ github.event_name != 'pull_request' }}
|
62 | 69 | tags: ${{ steps.docker_meta.outputs.tags }}
|
|
65 | 72 | APP_VERSION=${{ steps.docker_meta.outputs.version }}
|
66 | 73 | GIT_SHA=${{ github.sha }}
|
67 | 74 | DOCKER_TAG=${{ steps.docker_meta.outputs.tags }}
|
68 |
| -
|
69 |
| - solo: |
70 |
| - runs-on: ubuntu-latest |
71 |
| - permissions: |
72 |
| - contents: read # for checkout |
73 |
| - id-token: write # for OIDC token, used for Depot |
74 |
| - packages: write # to upload build to GHCR |
75 |
| - steps: |
76 |
| - - name: Check out code |
77 |
| - uses: actions/checkout@v5 |
78 |
| - |
79 |
| - - name: Work out Docker tags |
80 |
| - id: docker_meta |
81 |
| - uses: docker/metadata-action@v5 |
82 |
| - with: |
83 |
| - images: ghcr.io/${{ github.repository }}-solo |
84 |
| - tags: | |
85 |
| - type=raw,value=${{ inputs.tag }},event=workflow_dispatch |
86 |
| - type=schedule,pattern=nightly |
87 |
| - type=semver,pattern={{version}} |
88 |
| - type=ref,event=pr |
89 |
| - type=edge |
90 |
| -
|
91 |
| - - name: Depot setup |
92 |
| - uses: depot/setup-action@v1 |
93 |
| - |
94 |
| - - name: Login to GitHub Container Registry |
95 |
| - uses: docker/login-action@v3 |
96 |
| - with: |
97 |
| - registry: ghcr.io |
98 |
| - username: ${{ github.repository_owner }} |
99 |
| - password: ${{ secrets.GITHUB_TOKEN }} |
100 |
| - |
101 |
| - - name: Build and push |
102 |
| - id: depot |
103 |
| - uses: depot/build-push-action@v1 |
104 |
| - with: |
105 |
| - project: bsbhgkfhgc |
106 |
| - context: . |
107 |
| - file: ./docker/solo.dockerfile |
108 |
| - platforms: linux/amd64,linux/arm64 |
109 |
| - push: ${{ github.event_name != 'pull_request' }} |
110 |
| - tags: ${{ steps.docker_meta.outputs.tags }} |
111 |
| - labels: ${{ steps.docker_meta.outputs.labels }} |
112 |
| - build-args: | |
113 |
| - APP_VERSION=${{ steps.docker_meta.outputs.version }} |
114 |
| - GIT_SHA=${{ github.sha }} |
0 commit comments