-
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 'staging' into sprint-1.18
- Loading branch information
Showing
3 changed files
with
30 additions
and
12 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 |
---|---|---|
|
@@ -55,24 +55,30 @@ jobs: | |
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Login to Docker Hub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_PASSWORD }} | ||
# - name: Login to Docker Hub | ||
# uses: docker/login-action@v1 | ||
# with: | ||
# 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 | ||
env: | ||
DOCKER_CONFIG: /tmp/docker-config-${{ github.run_id }} | ||
run: | | ||
docker login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_PASSWORD }} | ||
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') | ||
env: | ||
DOCKER_CONFIG: /tmp/docker-config-${{ github.run_id }} | ||
run: | | ||
docker login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_PASSWORD }} | ||
SHORT_SHA=$(echo ${{ env.SHA }} | head -c 8) | ||
./docker.local/bin/build.base.sh && | ||
|
@@ -82,7 +88,10 @@ jobs: | |
docker push $BLOBBER_BUILD_BASE_REGISTRY:$TAG-$SHORT_SHA | ||
- name: Build blobber | ||
env: | ||
DOCKER_CONFIG: /tmp/docker-config-${{ github.run_id }} | ||
run: | | ||
docker login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_PASSWORD }} | ||
SHORT_SHA=$(echo ${{ env.SHA }} | head -c 8) | ||
export DOCKER_IMAGE_BASE="$BLOBBER_BUILD_BASE_REGISTRY:$TAG" | ||
export DOCKER_IMAGE_SWAGGER="${BLOBBER_REGISTRY}:swagger_test" | ||
|
@@ -123,11 +132,11 @@ jobs: | |
# with: | ||
# go-version: ^1.21 # The Go version to download (if necessary) and use. | ||
|
||
- name: Login to Docker Hub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_PASSWORD }} | ||
# - name: Login to Docker Hub | ||
# uses: docker/login-action@v1 | ||
# with: | ||
# username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
# password: ${{ secrets.DOCKERHUB_PASSWORD }} | ||
|
||
- name: Clone blobber | ||
uses: actions/checkout@v3 | ||
|
@@ -144,13 +153,19 @@ jobs: | |
# fetch-depth: 0 | ||
|
||
- name: Pull Build Base | ||
env: | ||
DOCKER_CONFIG: /tmp/docker-config-${{ github.run_id }} | ||
run: | | ||
docker login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_PASSWORD }} | ||
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') | ||
env: | ||
DOCKER_CONFIG: /tmp/docker-config-${{ github.run_id }} | ||
run: | | ||
docker login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_PASSWORD }} | ||
SHORT_SHA=$(echo ${{ env.SHA }} | head -c 8) | ||
./docker.local/bin/build.base.sh | ||
|
@@ -160,7 +175,10 @@ jobs: | |
docker push $BLOBBER_BUILD_BASE_REGISTRY:$TAG-$SHORT_SHA | ||
- name: Build validator | ||
env: | ||
DOCKER_CONFIG: /tmp/docker-config-${{ github.run_id }} | ||
run: | | ||
docker login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_PASSWORD }} | ||
SHORT_SHA=$(echo ${{ env.SHA }} | head -c 8) | ||
export DOCKER_IMAGE_BASE="$BLOBBER_BUILD_BASE_REGISTRY:$TAG" | ||
# export DOCKER_BUILD="buildx build --platform linux/amd64,linux/arm64 --push" | ||
|
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