|
1 | | -# Reusable workflow: all Docker image builds (base, manifests, steamcmd, nix). |
| 1 | +# Reusable workflow: all Docker image builds (base, manifests, steamcmd). |
2 | 2 | # Used by master build.yml and PR pr.yml to avoid duplication. |
3 | 3 | name: Docker builds (reusable) |
4 | 4 | on: |
@@ -120,98 +120,3 @@ jobs: |
120 | 120 | DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} |
121 | 121 | DRUID_ARTIFACTS_REGISTRY_USERNAME: ${{ secrets.DRUID_ARTIFACTS_REGISTRY_USERNAME }} |
122 | 122 | DRUID_ARTIFACTS_REGISTRY_TOKEN: ${{ secrets.DRUID_ARTIFACTS_REGISTRY_TOKEN }} |
123 | | - |
124 | | - docker-nix-amd64: |
125 | | - needs: [docker-base-manifest, docker-base-manifest-artifacts] |
126 | | - uses: ./.github/workflows/docker-build-reusable.yml |
127 | | - with: |
128 | | - dockerfile: Dockerfile.nix |
129 | | - runs_on: ubuntu-latest |
130 | | - tags: | |
131 | | - highcard/druid:${{ inputs.version_tag }}-nix-amd64 |
132 | | - artifacts.druid.gg/druid-team/druid:${{ inputs.version_tag }}-nix-amd64 |
133 | | - build_args: | |
134 | | - VERSION=${{ inputs.version_tag }} |
135 | | - secrets: |
136 | | - DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} |
137 | | - DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} |
138 | | - DRUID_ARTIFACTS_REGISTRY_USERNAME: ${{ secrets.DRUID_ARTIFACTS_REGISTRY_USERNAME }} |
139 | | - DRUID_ARTIFACTS_REGISTRY_TOKEN: ${{ secrets.DRUID_ARTIFACTS_REGISTRY_TOKEN }} |
140 | | - |
141 | | - docker-nix-arm64: |
142 | | - needs: [docker-base-manifest, docker-base-manifest-artifacts] |
143 | | - uses: ./.github/workflows/docker-build-reusable.yml |
144 | | - with: |
145 | | - dockerfile: Dockerfile.nix |
146 | | - runs_on: ubuntu-24.04-arm |
147 | | - tags: | |
148 | | - highcard/druid:${{ inputs.version_tag }}-nix-arm64 |
149 | | - artifacts.druid.gg/druid-team/druid:${{ inputs.version_tag }}-nix-arm64 |
150 | | - build_args: | |
151 | | - VERSION=${{ inputs.version_tag }} |
152 | | - secrets: |
153 | | - DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} |
154 | | - DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} |
155 | | - DRUID_ARTIFACTS_REGISTRY_USERNAME: ${{ secrets.DRUID_ARTIFACTS_REGISTRY_USERNAME }} |
156 | | - DRUID_ARTIFACTS_REGISTRY_TOKEN: ${{ secrets.DRUID_ARTIFACTS_REGISTRY_TOKEN }} |
157 | | - |
158 | | - docker-nix-steamcmd: |
159 | | - needs: [docker-steamcmd] |
160 | | - uses: ./.github/workflows/docker-build-reusable.yml |
161 | | - with: |
162 | | - dockerfile: Dockerfile.nix |
163 | | - tags: | |
164 | | - highcard/druid:${{ inputs.version_tag }}-nix-steamcmd |
165 | | - artifacts.druid.gg/druid-team/druid:${{ inputs.version_tag }}-nix-steamcmd |
166 | | - ${{ inputs.is_pr != true && format('highcard/druid:latest-nix-steamcmd') || '' }} |
167 | | - ${{ inputs.is_pr != true && format('highcard/druid:stable-nix-steamcmd') || '' }} |
168 | | - ${{ inputs.is_pr != true && format('highcard/druid:{0}-nix-steamcmd', inputs.version) || '' }} |
169 | | - ${{ inputs.is_pr != true && format('artifacts.druid.gg/druid-team/druid:latest-nix-steamcmd') || '' }} |
170 | | - ${{ inputs.is_pr != true && format('artifacts.druid.gg/druid-team/druid:stable-nix-steamcmd') || '' }} |
171 | | - ${{ inputs.is_pr != true && format('artifacts.druid.gg/druid-team/druid:{0}-nix-steamcmd', inputs.version) || '' }} |
172 | | - build_args: | |
173 | | - VERSION=${{ inputs.version_tag }}-steamcmd |
174 | | - secrets: |
175 | | - DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} |
176 | | - DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} |
177 | | - DRUID_ARTIFACTS_REGISTRY_USERNAME: ${{ secrets.DRUID_ARTIFACTS_REGISTRY_USERNAME }} |
178 | | - DRUID_ARTIFACTS_REGISTRY_TOKEN: ${{ secrets.DRUID_ARTIFACTS_REGISTRY_TOKEN }} |
179 | | - |
180 | | - docker-nix-manifest: |
181 | | - name: Create multi-arch nix manifests |
182 | | - needs: [docker-nix-amd64, docker-nix-arm64] |
183 | | - runs-on: ubuntu-latest |
184 | | - steps: |
185 | | - - name: Login to Docker Hub |
186 | | - uses: docker/login-action@v3 |
187 | | - with: |
188 | | - username: ${{ secrets.DOCKERHUB_USERNAME }} |
189 | | - password: ${{ secrets.DOCKERHUB_TOKEN }} |
190 | | - - name: Create and push nix manifests |
191 | | - uses: Noelware/docker-manifest-action@v1 |
192 | | - with: |
193 | | - inputs: highcard/druid:${{ inputs.version_tag }}-nix-amd64,highcard/druid:${{ inputs.version_tag }}-nix-arm64 |
194 | | - tags: >- |
195 | | - highcard/druid:${{ inputs.version }}-nix, |
196 | | - highcard/druid:${{ inputs.version_tag }}-nix${{ inputs.is_pr != true && ',highcard/druid:latest-nix,highcard/druid:stable-nix' || '' }} |
197 | | - push: true |
198 | | - |
199 | | - docker-nix-manifest-artifacts: |
200 | | - name: Create multi-arch nix manifests (artifacts registry) |
201 | | - needs: [docker-nix-amd64, docker-nix-arm64] |
202 | | - runs-on: ubuntu-latest |
203 | | - steps: |
204 | | - - name: Login to Artifacts Registry |
205 | | - uses: docker/login-action@v3 |
206 | | - with: |
207 | | - registry: artifacts.druid.gg |
208 | | - username: ${{ secrets.DRUID_ARTIFACTS_REGISTRY_USERNAME }} |
209 | | - password: ${{ secrets.DRUID_ARTIFACTS_REGISTRY_TOKEN }} |
210 | | - - name: Create and push nix manifests (artifacts) |
211 | | - uses: Noelware/docker-manifest-action@v1 |
212 | | - with: |
213 | | - inputs: artifacts.druid.gg/druid-team/druid:${{ inputs.version_tag }}-nix-amd64,artifacts.druid.gg/druid-team/druid:${{ inputs.version_tag }}-nix-arm64 |
214 | | - tags: >- |
215 | | - artifacts.druid.gg/druid-team/druid:${{ inputs.version }}-nix, |
216 | | - artifacts.druid.gg/druid-team/druid:${{ inputs.version_tag }}-nix${{ inputs.is_pr != true && ',artifacts.druid.gg/druid-team/druid:latest-nix,artifacts.druid.gg/druid-team/druid:stable-nix' || '' }} |
217 | | - push: true |
0 commit comments