|
22 | 22 | jobs: |
23 | 23 | blobber: |
24 | 24 | timeout-minutes: 30 |
25 | | - runs-on: [blobber-runner] |
| 25 | + runs-on: [hetzner-build] |
26 | 26 | steps: |
27 | 27 | - name: Cleanup before restarting conductor tests. |
28 | 28 | run: | |
|
52 | 52 | with: |
53 | 53 | fetch-depth: 0 |
54 | 54 |
|
55 | | - - name: Set up Docker Buildx |
56 | | - uses: docker/setup-buildx-action@v3 |
57 | | - |
58 | 55 | # - name: Login to Docker Hub |
59 | 56 | # uses: docker/login-action@v1 |
60 | 57 | # with: |
@@ -95,19 +92,19 @@ jobs: |
95 | 92 | SHORT_SHA=$(echo ${{ env.SHA }} | head -c 8) |
96 | 93 | export DOCKER_IMAGE_BASE="$BLOBBER_BUILD_BASE_REGISTRY:$TAG" |
97 | 94 | export DOCKER_IMAGE_SWAGGER="${BLOBBER_REGISTRY}:swagger_test" |
98 | | - # export DOCKER_BUILD="buildx build --platform linux/amd64,linux/arm64 --push" |
99 | | - export DOCKER_BUILD="build --push" |
| 95 | + export DOCKER_BUILD="buildx build --load" |
100 | 96 | export DOCKER_IMAGE_BLOBBER="-t ${BLOBBER_REGISTRY}:${TAG}" |
101 | 97 | export CONTEXT_NAME="$RUNNER_NAME" && (docker context inspect "$CONTEXT_NAME" >/dev/null 2>&1 || docker context create "$CONTEXT_NAME") |
102 | 98 | docker buildx inspect "blobber-$RUNNER_NAME" || docker buildx create --name "blobber-$RUNNER_NAME" --driver-opt network=host --buildkitd-flags '--allow-insecure-entitlement security.insecure' "$CONTEXT_NAME" |
103 | 99 | docker buildx use "blobber-$RUNNER_NAME" |
104 | 100 | ./docker.local/bin/build.blobber.sh |
105 | 101 | docker tag ${BLOBBER_REGISTRY}:${TAG} ${BLOBBER_REGISTRY}:${TAG}-${SHORT_SHA} |
| 102 | + docker push ${BLOBBER_REGISTRY}:${TAG} |
106 | 103 | docker push ${BLOBBER_REGISTRY}:${TAG}-${SHORT_SHA} |
107 | 104 |
|
108 | 105 | validator: |
109 | 106 | timeout-minutes: 30 |
110 | | - runs-on: [blobber-runner] |
| 107 | + runs-on: [hetzner-build] |
111 | 108 | steps: |
112 | 109 | - name: Cleanup before restarting conductor tests. |
113 | 110 | run: | |
@@ -143,8 +140,6 @@ jobs: |
143 | 140 | with: |
144 | 141 | fetch-depth: 0 |
145 | 142 |
|
146 | | - - name: Set up Docker Buildx |
147 | | - uses: docker/setup-buildx-action@v3 |
148 | 143 |
|
149 | 144 | # - name: Get changed files using defaults |
150 | 145 | # id: changed-files |
@@ -181,20 +176,20 @@ jobs: |
181 | 176 | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_PASSWORD }} |
182 | 177 | SHORT_SHA=$(echo ${{ env.SHA }} | head -c 8) |
183 | 178 | export DOCKER_IMAGE_BASE="$BLOBBER_BUILD_BASE_REGISTRY:$TAG" |
184 | | - # export DOCKER_BUILD="buildx build --platform linux/amd64,linux/arm64 --push" |
185 | | - export DOCKER_BUILD="build --push" |
| 179 | + export DOCKER_BUILD="buildx build --load" |
186 | 180 | export DOCKER_IMAGE_VALIDATOR="-t ${VALIDATOR_REGISTRY}:${TAG}" |
187 | 181 | export CONTEXT_NAME="$RUNNER_NAME" && (docker context inspect "$CONTEXT_NAME" >/dev/null 2>&1 || docker context create "$CONTEXT_NAME") |
188 | 182 | docker buildx inspect "validator-$RUNNER_NAME" || docker buildx create --name "validator-$RUNNER_NAME" --driver-opt network=host --buildkitd-flags '--allow-insecure-entitlement security.insecure' "$CONTEXT_NAME" |
189 | 183 | docker buildx use "validator-$RUNNER_NAME" |
190 | 184 | ./docker.local/bin/build.validator.sh |
191 | 185 | docker tag ${VALIDATOR_REGISTRY}:${TAG} ${VALIDATOR_REGISTRY}:${TAG}-${SHORT_SHA} |
| 186 | + docker push ${VALIDATOR_REGISTRY}:${TAG} |
192 | 187 | docker push ${VALIDATOR_REGISTRY}:${TAG}-${SHORT_SHA} |
193 | 188 |
|
194 | 189 | system-tests: |
195 | 190 | if: github.event_name != 'workflow_dispatch' |
196 | 191 | needs: [blobber, validator] |
197 | | - runs-on: [ tests-suite ] |
| 192 | + runs-on: [ hetzner-testsuite ] |
198 | 193 | steps: |
199 | 194 | - name: "Get current PR" |
200 | 195 | uses: jwalton/gh-find-current-pr@v1 |
|
0 commit comments