-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'sprint-july-4' into add/case-2-and-case-4
- Loading branch information
Showing
50 changed files
with
568 additions
and
384 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,8 @@ env: | |
BLOBBER_REGISTRY: ${{ secrets.BLOBBER_REGISTRY }} | ||
VALIDATOR_REGISTRY: ${{ secrets.VALIDATOR_REGISTRY }} | ||
DOCKER_CLI_EXPERIMENTAL: enabled | ||
BLOBBER_BUILDBASE: blobber_base | ||
BLOBBER_BUILD_BASE_REGISTRY: ${{ secrets.BLOBBER_BUILD_BASE_REGISTRY }} | ||
|
||
jobs: | ||
blobber: | ||
|
@@ -39,7 +41,7 @@ jobs: | |
go-version: ^1.20 # The Go version to download (if necessary) and use. | ||
|
||
- name: Clone blobber | ||
uses: actions/checkout@v1 | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Docker Buildx | ||
run: | | ||
|
@@ -60,6 +62,26 @@ jobs: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_PASSWORD }} | ||
|
||
- name: Get changed files using defaults | ||
id: changed-files | ||
uses: tj-actions/[email protected] | ||
|
||
- name: Pull Build Base | ||
run: | | ||
docker pull $BLOBBER_BUILD_BASE_REGISTRY:staging | ||
docker tag $BLOBBER_BUILD_BASE_REGISTRY:staging $BLOBBER_BUILDBASE | ||
- name: Build Base image | ||
if: contains(steps.changed-files.outputs.modified_files, 'docker.local/base.Dockerfile') | ||
run: | | ||
SHORT_SHA=$(echo ${{ env.SHA }} | head -c 8) | ||
./docker.local/bin/build.base.sh && | ||
docker tag $BLOBBER_BUILDBASE $BLOBBER_BUILD_BASE_REGISTRY:$TAG | ||
docker tag $BLOBBER_BUILDBASE $BLOBBER_BUILD_BASE_REGISTRY:$TAG-$SHORT_SHA | ||
docker push $BLOBBER_BUILD_BASE_REGISTRY:$TAG | ||
docker push $BLOBBER_BUILD_BASE_REGISTRY:$TAG-$SHORT_SHA | ||
- name: Build blobber | ||
run: | | ||
SHORT_SHA=$(echo ${{ env.SHA }} | head -c 8) | ||
|
@@ -68,7 +90,7 @@ jobs: | |
export DOCKER_BUILD="buildx build --platform linux/amd64,linux/arm64 --push" | ||
export DOCKER_IMAGE_BLOBBER="-t ${BLOBBER_REGISTRY}:${TAG} -t ${BLOBBER_REGISTRY}:${TAG}-${SHORT_SHA}" | ||
docker buildx create --driver-opt network=host --use --buildkitd-flags '--allow-insecure-entitlement security.insecure' --use blobber_buildx | ||
./docker.local/bin/build.base.sh && ./docker.local/bin/build.blobber.sh | ||
./docker.local/bin/build.blobber.sh | ||
validator: | ||
runs-on: [self-hosted, arc-runner] | ||
|
@@ -112,14 +134,34 @@ jobs: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_PASSWORD }} | ||
|
||
- name: Get changed files using defaults | ||
id: changed-files | ||
uses: tj-actions/[email protected] | ||
|
||
- name: Pull Build Base | ||
run: | | ||
docker pull $BLOBBER_BUILD_BASE_REGISTRY:staging | ||
docker tag $BLOBBER_BUILD_BASE_REGISTRY:staging $BLOBBER_BUILDBASE | ||
- name: Build Base image | ||
if: contains(steps.changed-files.outputs.modified_files, 'docker.local/base.Dockerfile') | ||
run: | | ||
SHORT_SHA=$(echo ${{ env.SHA }} | head -c 8) | ||
./docker.local/bin/build.base.sh | ||
docker tag $BLOBBER_BUILDBASE $BLOBBER_BUILD_BASE_REGISTRY:$TAG | ||
docker tag $BLOBBER_BUILDBASE $BLOBBER_BUILD_BASE_REGISTRY:$TAG-$SHORT_SHA | ||
docker push $BLOBBER_BUILD_BASE_REGISTRY:$TAG | ||
docker push $BLOBBER_BUILD_BASE_REGISTRY:$TAG-$SHORT_SHA | ||
- name: Build validator | ||
run: | | ||
SHORT_SHA=$(echo ${{ env.SHA }} | head -c 8) | ||
export DOCKER_IMAGE_BASE="${VALIDATOR_REGISTRY}:base" | ||
export DOCKER_BUILD="buildx build --platform linux/amd64,linux/arm64 --push" | ||
export DOCKER_IMAGE_VALIDATOR="-t ${VALIDATOR_REGISTRY}:${TAG} -t ${VALIDATOR_REGISTRY}:${TAG}-${SHORT_SHA}" | ||
docker buildx create --driver-opt network=host --use --buildkitd-flags '--allow-insecure-entitlement security.insecure' --use blobber_buildx | ||
./docker.local/bin/build.base.sh && ./docker.local/bin/build.validator.sh | ||
./docker.local/bin/build.validator.sh | ||
system-tests: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.