Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve CI builds: use DOCKER_BUILDKIT #706

Merged
merged 2 commits into from
Sep 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions .github/workflows/dockers-agent-ngt-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,13 @@ jobs:
- name: Build the Docker image
run: |
make docker/build/agent-ngt
- name: login to DockerHub
run: |
echo ${DOCKERHUB_PASS} | docker login --username ${DOCKERHUB_USER} --password-stdin
env:
DOCKERHUB_USER: ${{ secrets.DOCKERHUB_USER }}
DOCKERHUB_PASS: ${{ secrets.DOCKERHUB_PASS }}
DOCKER_BUILDKIT: 1
- name: login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_PASS }}
- name: push to DockerHub (master)
if: github.ref == 'refs/heads/master'
run: |
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/dockers-agent-sidecar-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,13 @@ jobs:
- name: Build the Docker image
run: |
make docker/build/agent-sidecar
- name: login to DockerHub
run: |
echo ${DOCKERHUB_PASS} | docker login --username ${DOCKERHUB_USER} --password-stdin
env:
DOCKERHUB_USER: ${{ secrets.DOCKERHUB_USER }}
DOCKERHUB_PASS: ${{ secrets.DOCKERHUB_PASS }}
DOCKER_BUILDKIT: 1
- name: login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_PASS }}
- name: push to DockerHub (master)
if: github.ref == 'refs/heads/master'
run: |
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/dockers-backup-manager-cassandra-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,13 @@ jobs:
- name: Build the Docker image
run: |
make docker/build/backup-manager-cassandra
- name: login to DockerHub
run: |
echo ${DOCKERHUB_PASS} | docker login --username ${DOCKERHUB_USER} --password-stdin
env:
DOCKERHUB_USER: ${{ secrets.DOCKERHUB_USER }}
DOCKERHUB_PASS: ${{ secrets.DOCKERHUB_PASS }}
DOCKER_BUILDKIT: 1
- name: login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_PASS }}
- name: push to DockerHub (master)
if: github.ref == 'refs/heads/master'
run: |
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/dockers-backup-manager-mysql-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,13 @@ jobs:
- name: Build the Docker image
run: |
make docker/build/backup-manager-mysql
- name: login to DockerHub
run: |
echo ${DOCKERHUB_PASS} | docker login --username ${DOCKERHUB_USER} --password-stdin
env:
DOCKERHUB_USER: ${{ secrets.DOCKERHUB_USER }}
DOCKERHUB_PASS: ${{ secrets.DOCKERHUB_PASS }}
DOCKER_BUILDKIT: 1
- name: login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_PASS }}
- name: push to DockerHub (master)
if: github.ref == 'refs/heads/master'
run: |
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/dockers-base-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,13 @@ jobs:
- name: Build the Docker image
run: |
make docker/build/base
- name: login to DockerHub
run: |
echo ${DOCKERHUB_PASS} | docker login --username ${DOCKERHUB_USER} --password-stdin
env:
DOCKERHUB_USER: ${{ secrets.DOCKERHUB_USER }}
DOCKERHUB_PASS: ${{ secrets.DOCKERHUB_PASS }}
DOCKER_BUILDKIT: 1
- name: login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_PASS }}
- name: push to DockerHub (master)
if: github.ref == 'refs/heads/master'
run: |
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/dockers-ci-container-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ jobs:
- name: Build the Docker image
run: |
make docker/build/ci-container
env:
DOCKER_BUILDKIT: 1
- name: Login to GitHub package registry
run: |
echo ${GITHUB_TOKEN} | docker login docker.pkg.github.com --username ${GITHUB_USER} --password-stdin
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/dockers-discoverer-k8s-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,13 @@ jobs:
- name: Build the Docker image
run: |
make docker/build/discoverer-k8s
- name: login to DockerHub
run: |
echo ${DOCKERHUB_PASS} | docker login --username ${DOCKERHUB_USER} --password-stdin
env:
DOCKERHUB_USER: ${{ secrets.DOCKERHUB_USER }}
DOCKERHUB_PASS: ${{ secrets.DOCKERHUB_PASS }}
DOCKER_BUILDKIT: 1
- name: login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_PASS }}
- name: push to DockerHub (master)
if: github.ref == 'refs/heads/master'
run: |
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/dockers-gateway-vald-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,13 @@ jobs:
- name: Build the Docker image
run: |
make docker/build/gateway-vald
- name: login to DockerHub
run: |
echo ${DOCKERHUB_PASS} | docker login --username ${DOCKERHUB_USER} --password-stdin
env:
DOCKERHUB_USER: ${{ secrets.DOCKERHUB_USER }}
DOCKERHUB_PASS: ${{ secrets.DOCKERHUB_PASS }}
DOCKER_BUILDKIT: 1
- name: login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_PASS }}
- name: push to DockerHub (master)
if: github.ref == 'refs/heads/master'
run: |
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/dockers-helm-operator-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,13 @@ jobs:
- name: Build the Docker image
run: |
make docker/build/operator/helm
- name: login to DockerHub
run: |
echo ${DOCKERHUB_PASS} | docker login --username ${DOCKERHUB_USER} --password-stdin
env:
DOCKERHUB_USER: ${{ secrets.DOCKERHUB_USER }}
DOCKERHUB_PASS: ${{ secrets.DOCKERHUB_PASS }}
DOCKER_BUILDKIT: 1
- name: login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_PASS }}
- name: push to DockerHub (master)
if: github.ref == 'refs/heads/master'
run: |
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/dockers-image-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
imagename=`make docker/name/agent-ngt`
docker tag ${imagename} ${imagename}:${{ github.sha }}
echo "::set-output name=IMAGE_NAME::${imagename}"
env:
DOCKER_BUILDKIT: 1
- name: Run vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
Expand Down Expand Up @@ -47,6 +49,8 @@ jobs:
imagename=`make docker/name/agent-sidecar`
docker tag ${imagename} ${imagename}:${{ github.sha }}
echo "::set-output name=IMAGE_NAME::${imagename}"
env:
DOCKER_BUILDKIT: 1
- name: Run vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
Expand Down Expand Up @@ -77,6 +81,8 @@ jobs:
imagename=`make docker/name/discoverer-k8s`
docker tag ${imagename} ${imagename}:${{ github.sha }}
echo "::set-output name=IMAGE_NAME::${imagename}"
env:
DOCKER_BUILDKIT: 1
- name: Run vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
Expand Down Expand Up @@ -107,6 +113,8 @@ jobs:
imagename=`make docker/name/gateway-vald`
docker tag ${imagename} ${imagename}:${{ github.sha }}
echo "::set-output name=IMAGE_NAME::${imagename}"
env:
DOCKER_BUILDKIT: 1
- name: Run vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
Expand Down Expand Up @@ -137,6 +145,8 @@ jobs:
imagename=`make docker/name/meta-redis`
docker tag ${imagename} ${imagename}:${{ github.sha }}
echo "::set-output name=IMAGE_NAME::${imagename}"
env:
DOCKER_BUILDKIT: 1
- name: Run vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
Expand Down Expand Up @@ -167,6 +177,8 @@ jobs:
imagename=`make docker/name/meta-cassandra`
docker tag ${imagename} ${imagename}:${{ github.sha }}
echo "::set-output name=IMAGE_NAME::${imagename}"
env:
DOCKER_BUILDKIT: 1
- name: Run vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
Expand Down Expand Up @@ -197,6 +209,8 @@ jobs:
imagename=`make docker/name/backup-manager-mysql`
docker tag ${imagename} ${imagename}:${{ github.sha }}
echo "::set-output name=IMAGE_NAME::${imagename}"
env:
DOCKER_BUILDKIT: 1
- name: Run vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
Expand Down Expand Up @@ -227,6 +241,8 @@ jobs:
imagename=`make docker/name/backup-manager-cassandra`
docker tag ${imagename} ${imagename}:${{ github.sha }}
echo "::set-output name=IMAGE_NAME::${imagename}"
env:
DOCKER_BUILDKIT: 1
- name: Run vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
Expand Down Expand Up @@ -257,6 +273,8 @@ jobs:
imagename=`make docker/name/manager-compressor`
docker tag ${imagename} ${imagename}:${{ github.sha }}
echo "::set-output name=IMAGE_NAME::${imagename}"
env:
DOCKER_BUILDKIT: 1
- name: Run vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
Expand Down Expand Up @@ -287,6 +305,8 @@ jobs:
imagename=`make docker/name/manager-index`
docker tag ${imagename} ${imagename}:${{ github.sha }}
echo "::set-output name=IMAGE_NAME::${imagename}"
env:
DOCKER_BUILDKIT: 1
- name: Run vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
Expand Down Expand Up @@ -317,6 +337,8 @@ jobs:
imagename=`make docker/name/operator/helm`
docker tag ${imagename} ${imagename}:${{ github.sha }}
echo "::set-output name=IMAGE_NAME::${imagename}"
env:
DOCKER_BUILDKIT: 1
- name: Run vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
Expand Down Expand Up @@ -347,6 +369,8 @@ jobs:
imagename=`make docker/name/loadtest`
docker tag ${imagename} ${imagename}:${{ github.sha }}
echo "::set-output name=IMAGE_NAME::${imagename}"
env:
DOCKER_BUILDKIT: 1
- name: Run vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/dockers-loadtest-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,13 @@ jobs:
- name: Build the Docker image
run: |
make docker/build/loadtest
- name: login to DockerHub
run: |
echo ${DOCKERHUB_PASS} | docker login --username ${DOCKERHUB_USER} --password-stdin
env:
DOCKERHUB_USER: ${{ secrets.DOCKERHUB_USER }}
DOCKERHUB_PASS: ${{ secrets.DOCKERHUB_PASS }}
DOCKER_BUILDKIT: 1
- name: login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_PASS }}
- name: push to DockerHub (master)
if: github.ref == 'refs/heads/master'
run: |
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/dockers-manager-compressor-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,13 @@ jobs:
- name: Build the Docker image
run: |
make docker/build/manager-compressor
- name: login to DockerHub
run: |
echo ${DOCKERHUB_PASS} | docker login --username ${DOCKERHUB_USER} --password-stdin
env:
DOCKERHUB_USER: ${{ secrets.DOCKERHUB_USER }}
DOCKERHUB_PASS: ${{ secrets.DOCKERHUB_PASS }}
DOCKER_BUILDKIT: 1
- name: login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_PASS }}
- name: push to DockerHub (master)
if: github.ref == 'refs/heads/master'
run: |
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/dockers-manager-index-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,13 @@ jobs:
- name: Build the Docker image
run: |
make docker/build/manager-index
- name: login to DockerHub
run: |
echo ${DOCKERHUB_PASS} | docker login --username ${DOCKERHUB_USER} --password-stdin
env:
DOCKERHUB_USER: ${{ secrets.DOCKERHUB_USER }}
DOCKERHUB_PASS: ${{ secrets.DOCKERHUB_PASS }}
DOCKER_BUILDKIT: 1
- name: login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_PASS }}
- name: push to DockerHub (master)
if: github.ref == 'refs/heads/master'
run: |
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/dockers-meta-cassandra-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,13 @@ jobs:
- name: Build the Docker image
run: |
make docker/build/meta-cassandra
- name: login to DockerHub
run: |
echo ${DOCKERHUB_PASS} | docker login --username ${DOCKERHUB_USER} --password-stdin
env:
DOCKERHUB_USER: ${{ secrets.DOCKERHUB_USER }}
DOCKERHUB_PASS: ${{ secrets.DOCKERHUB_PASS }}
DOCKER_BUILDKIT: 1
- name: login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_PASS }}
- name: push to DockerHub (master)
if: github.ref == 'refs/heads/master'
run: |
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/dockers-meta-redis-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,13 @@ jobs:
- name: Build the Docker image
run: |
make docker/build/meta-redis
- name: login to DockerHub
run: |
echo ${DOCKERHUB_PASS} | docker login --username ${DOCKERHUB_USER} --password-stdin
env:
DOCKERHUB_USER: ${{ secrets.DOCKERHUB_USER }}
DOCKERHUB_PASS: ${{ secrets.DOCKERHUB_PASS }}
DOCKER_BUILDKIT: 1
- name: login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_PASS }}
- name: push to DockerHub (master)
if: github.ref == 'refs/heads/master'
run: |
Expand Down