Skip to content

Commit

Permalink
adding ignore files for docker files and github (#10921)
Browse files Browse the repository at this point in the history
* adding ignore files for docker files and github

* update to use new workflow with security restrictions on container builds

* updating 2.0 to 2.1 workflow
  • Loading branch information
pputman-clabs authored Feb 5, 2024
1 parent 7eec983 commit 3786bcd
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ packages/mobile
packages/react-components
packages/notification-service
packages/web

# Ignore generated credentials from google-github-actions/auth
gha-creds-*.json
12 changes: 6 additions & 6 deletions .github/workflows/containers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:

# Celotool images
celotool-build-dev:
uses: celo-org/reusable-workflows/.github/workflows/container-cicd.yaml@v1.14.1
uses: celo-org/reusable-workflows/.github/workflows/container-cicd.yaml@v2.1
name: Build us-west1-docker.pkg.dev/devopsre/dev-images/celotool:${{ github.sha }}
needs: changed-files
if: |
Expand All @@ -46,7 +46,7 @@ jobs:
file: dockerfiles/celotool/Dockerfile
trivy: true
celotool-build:
uses: celo-org/reusable-workflows/.github/workflows/container-cicd.yaml@v1.14.1
uses: celo-org/reusable-workflows/.github/workflows/container-cicd.yaml@v2.1
name: Build us-west1-docker.pkg.dev/devopsre/celo-monorepo/celotool:${{ github.sha }}
needs: changed-files
if: |
Expand All @@ -64,7 +64,7 @@ jobs:

# All monorepo
celomonorepo-build-dev:
uses: celo-org/reusable-workflows/.github/workflows/container-cicd.yaml@v1.14.1
uses: celo-org/reusable-workflows/.github/workflows/container-cicd.yaml@v2.1
name: Build us-west1-docker.pkg.dev/devopsre/dev-images/monorepo:${{ github.sha }}
needs: changed-files
if: |
Expand All @@ -79,7 +79,7 @@ jobs:
file: dockerfiles/all-monorepo/Dockerfile
trivy: true
celomonorepo-build:
uses: celo-org/reusable-workflows/.github/workflows/container-cicd.yaml@v1.14.1
uses: celo-org/reusable-workflows/.github/workflows/container-cicd.yaml@v2.1
name: Build us-west1-docker.pkg.dev/devopsre/celo-monorepo/monorepo:${{ github.sha }}
needs: changed-files
if: |
Expand All @@ -96,7 +96,7 @@ jobs:

# Blockscout Metadata crawler images
metadata-crawler-build-dev:
uses: celo-org/reusable-workflows/.github/workflows/container-cicd.yaml@v1.14.1
uses: celo-org/reusable-workflows/.github/workflows/container-cicd.yaml@v2.1
needs: changed-files
name: Build us-west1-docker.pkg.dev/devopsre/dev-images/blockscout-metadata-crawler:testing
if: |
Expand All @@ -111,7 +111,7 @@ jobs:
file: dockerfiles/metadata-crawler/Dockerfile
trivy: true
metadata-crawler-build:
uses: celo-org/reusable-workflows/.github/workflows/container-cicd.yaml@v1.14.1
uses: celo-org/reusable-workflows/.github/workflows/container-cicd.yaml@v2.1
needs: changed-files
name: Build us-west1-docker.pkg.dev/devopsre/celo-monorepo/blockscout-metadata-crawler:latest
if: |
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,6 @@ packages/cli/*
scripts/failedSDKs.json

packages/protocol/types/typechain-mento/*.d.ts

# Ignore generated credentials from google-github-actions/auth
gha-creds-*.json

0 comments on commit 3786bcd

Please sign in to comment.