🌱 Fixing the docker build issue

This commit is contained in:
naveen 2021-04-23 18:34:40 +00:00 committed by Naveen
parent 760e01fbb8
commit 3d24435ba8
4 changed files with 5 additions and 5 deletions

View File

@ -30,7 +30,7 @@ jobs:
- name: Build an image from Dockerfile
run: |
docker build -t docker.pkg.github.com/ossf/scorecard:${{ github.sha }} .
DOCKER_BUILDKIT=1 docker build -t docker.pkg.github.com/ossf/scorecard:${{ github.sha }} .
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master

View File

@ -36,7 +36,7 @@ jobs:
- uses: actions/checkout@v2
- name: Build image
run: docker build . --file Dockerfile --tag $IMAGE_NAME
run: DOCKER_BUILDKIT=1 docker build . --file Dockerfile --tag $IMAGE_NAME
- name: Log into registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin

View File

@ -113,8 +113,8 @@ verify-go-mod: ## Verify the go modules
.PHONY: dockerbuild
dockerbuild: ## Runs docker build
$(call ndef, GITHUB_AUTH_TOKEN)
docker build . --file Dockerfile --tag $(IMAGE_NAME)
docker build . --file Dockerfile.gsutil --tag $(IMAGE_NAME)-gsutil
DOCKER_BUILDKIT=1 docker build . --file Dockerfile --tag $(IMAGE_NAME)
DOCKER_BUILDKIT=1 docker build . --file Dockerfile.gsutil --tag $(IMAGE_NAME)-gsutil
.PHONY: check-projects
check-projects: ## Validates ./cron/projects.txt

View File

@ -28,7 +28,7 @@ build: ## Runs go build and generates executable
.phony: dockerbuild
dockerbuild: ## runs docker build
$(call ndef, github_auth_token)
docker build . --tag $(IMAGE_NAME)
DOCKER_BUILDKIT=1 docker build . --tag $(IMAGE_NAME)
check-env: