Skip to content

Commit a4ce15b

Browse files
committed
ci: rename ci/Dockerfile, switch to devthefuture/dockerfile-x
1 parent 5413955 commit a4ce15b

File tree

7 files changed

+15
-16
lines changed

7 files changed

+15
-16
lines changed

.dockerignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
**
2-
!contrib/containers/ci/Dockerfile
2+
!contrib/containers/ci/ci.Dockerfile
33
!contrib/containers/deploy/Dockerfile
44
!contrib/containers/develop/Dockerfile

.github/workflows/build-container.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@ jobs:
4545
uses: docker/build-push-action@v6
4646
with:
4747
context: ./contrib/containers/ci
48-
file: ./contrib/containers/ci/Dockerfile
48+
file: ./contrib/containers/ci/ci.Dockerfile
4949
push: true
5050
tags: |
51-
ghcr.io/${{ steps.prepare.outputs.repo }}/dashcore-ci-runner:${{ hashFiles('./contrib/containers/ci/Dockerfile') }}
51+
ghcr.io/${{ steps.prepare.outputs.repo }}/dashcore-ci-runner:${{ hashFiles('./contrib/containers/ci/ci.Dockerfile') }}
5252
ghcr.io/${{ steps.prepare.outputs.repo }}/dashcore-ci-runner:${{ steps.prepare.outputs.tag }}
5353
ghcr.io/${{ steps.prepare.outputs.repo }}/dashcore-ci-runner:latest
5454
cache-from: |
55-
type=registry,ref=ghcr.io/${{ steps.prepare.outputs.repo }}/dashcore-ci-runner:${{ hashFiles('./contrib/containers/ci/Dockerfile') }}
55+
type=registry,ref=ghcr.io/${{ steps.prepare.outputs.repo }}/dashcore-ci-runner:${{ hashFiles('./contrib/containers/ci/ci.Dockerfile') }}
5656
type=registry,ref=ghcr.io/${{ steps.prepare.outputs.repo }}/dashcore-ci-runner:${{ steps.prepare.outputs.tag }}
5757
type=registry,ref=ghcr.io/${{ steps.prepare.outputs.repo }}/dashcore-ci-runner:latest
5858
cache-to: type=inline

.github/workflows/build-depends.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ jobs:
7070
path: |
7171
depends/built
7272
depends/${{ steps.setup.outputs.HOST }}
73-
key: depends-${{ hashFiles('contrib/containers/ci/Dockerfile') }}-${{ inputs.build-target }}-${{ steps.setup.outputs.DEP_HASH }}-${{ hashFiles('depends/packages/*') }}
73+
key: depends-${{ hashFiles('contrib/containers/ci/ci.Dockerfile') }}-${{ inputs.build-target }}-${{ steps.setup.outputs.DEP_HASH }}-${{ hashFiles('depends/packages/*') }}
7474
restore-keys: |
75-
depends-${{ hashFiles('contrib/containers/ci/Dockerfile') }}-${{ inputs.build-target }}-${{ steps.setup.outputs.DEP_HASH }}-
76-
depends-${{ hashFiles('contrib/containers/ci/Dockerfile') }}-${{ inputs.build-target }}-
75+
depends-${{ hashFiles('contrib/containers/ci/ci.Dockerfile') }}-${{ inputs.build-target }}-${{ steps.setup.outputs.DEP_HASH }}-
76+
depends-${{ hashFiles('contrib/containers/ci/ci.Dockerfile') }}-${{ inputs.build-target }}-
7777
7878
- name: Build depends
7979
run: |

.github/workflows/build-src.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ jobs:
7070
with:
7171
path: |
7272
/cache
73-
key: ccache-${{ hashFiles('contrib/containers/ci/Dockerfile', 'depends/packages/*') }}-${{ inputs.build-target }}-${{ github.sha }}
73+
key: ccache-${{ hashFiles('contrib/containers/ci/ci.Dockerfile', 'depends/packages/*') }}-${{ inputs.build-target }}-${{ github.sha }}
7474
restore-keys: |
75-
ccache-${{ hashFiles('contrib/containers/ci/Dockerfile', 'depends/packages/*') }}-${{ inputs.build-target }}-
75+
ccache-${{ hashFiles('contrib/containers/ci/ci.Dockerfile', 'depends/packages/*') }}-${{ inputs.build-target }}-
7676
7777
- name: Build source
7878
run: |

.gitlab-ci.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,10 @@ builder-image:
2929
- echo $CI_JOB_TOKEN | docker login -u gitlab-ci-token --password-stdin $CI_REGISTRY
3030
script:
3131
- cd contrib/containers/ci
32+
- export DOCKER_BUILDKIT=1
3233
- docker pull $CI_REGISTRY_IMAGE:builder-$CI_COMMIT_REF_SLUG || true
3334
- docker pull $CI_REGISTRY_IMAGE:builder-develop || true
34-
- docker build --cache-from $CI_REGISTRY_IMAGE:builder-$CI_COMMIT_REF_SLUG --cache-from $CI_REGISTRY_IMAGE:builder-develop -t $CI_REGISTRY_IMAGE:builder-$CI_COMMIT_REF_SLUG -f Dockerfile .
35+
- docker build --cache-from $CI_REGISTRY_IMAGE:builder-$CI_COMMIT_REF_SLUG --cache-from $CI_REGISTRY_IMAGE:builder-develop -t $CI_REGISTRY_IMAGE:builder-$CI_COMMIT_REF_SLUG -f ci.Dockerfile .
3536
- docker push $CI_REGISTRY_IMAGE:builder-$CI_COMMIT_REF_SLUG
3637

3738
.build-depends-template:
@@ -56,7 +57,7 @@ builder-image:
5657
# Let all branches share the same cache, which is ok because the depends subsystem is able to handle this properly (it works with hashes of all scripts)
5758
key:
5859
files:
59-
- contrib/containers/ci/Dockerfile
60+
- contrib/containers/ci/ci.Dockerfile
6061
prefix: ${CI_JOB_NAME}
6162
paths:
6263
- depends/built
@@ -116,7 +117,7 @@ builder-image:
116117
# Let all branches share the same cache, which is ok because ccache is able to handle it
117118
key:
118119
files:
119-
- contrib/containers/ci/Dockerfile
120+
- contrib/containers/ci/ci.Dockerfile
120121
prefix: ${CI_JOB_NAME}
121122
paths:
122123
- cache/ccache

contrib/containers/develop/Dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
# syntax = edrevo/dockerfile-plus
1+
# syntax = devthefuture/dockerfile-x
22

3-
FROM ubuntu:noble
4-
5-
INCLUDE+ ci/Dockerfile
3+
FROM ./ci/ci.Dockerfile
64

75
# The inherited Dockerfile switches to non-privileged context and we've
86
# just started configuring this image, give us root access

0 commit comments

Comments
 (0)