mirror of
https://github.com/ossf/scorecard.git
synced 2024-11-05 05:17:00 +03:00
🌱 Fixing the docker build issue
This commit is contained in:
parent
760e01fbb8
commit
3d24435ba8
2
.github/workflows/codescan.yml
vendored
2
.github/workflows/codescan.yml
vendored
@ -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
|
||||
|
2
.github/workflows/docker.yaml
vendored
2
.github/workflows/docker.yaml
vendored
@ -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
|
||||
|
4
Makefile
4
Makefile
@ -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
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user