Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
9f387e3
Add .circleci/config.yml
Dargon789 Jun 8, 2025
a4e38c6
Merge branch 'main' into circleci-project-setup
Dargon789 Jun 8, 2025
1d3fdda
Merge branch 'googleapis:main' into circleci-project-setup
Dargon789 Jul 2, 2025
6a67f0f
Merge branch 'main' into circleci-project-setup
Dargon789 Jul 2, 2025
dca4dca
Create google.yml (#1)
Dargon789 Jul 3, 2025
a547187
Merge pull request #2 from Dargon789/circleci-project-setup
Dargon789 Jul 3, 2025
5f35bf4
Merge branch 'googleapis:main' into main
Dargon789 Jul 9, 2025
b2c33d1
Update config.yml (#3)
Dargon789 Jul 16, 2025
cae191b
Merge branch 'googleapis:main' into main
Dargon789 Aug 29, 2025
da6ab58
Merge branch 'googleapis:main' into main
Dargon789 Sep 8, 2025
7dff2c1
Merge branch 'googleapis:main' into main
Dargon789 Sep 12, 2025
7fa1c7f
Merge branch 'googleapis:main' into main
Dargon789 Oct 10, 2025
0837c22
feat: upgrade c8 from 9.1.0 to 10.1.3
snyk-io[bot] Oct 10, 2025
b37e491
feat: upgrade c8 from 9.1.0 to 10.1.3
snyk-io[bot] Oct 10, 2025
243de53
Merge branch 'googleapis:main' into main
Dargon789 Oct 12, 2025
3c8b463
Update google.yml (#11)
Dargon789 Oct 13, 2025
1736015
fix: packages/google-cloud-dialogflow-cx/samples/package.json to redu…
snyk-io[bot] Nov 20, 2025
6bab3de
Merge branch 'googleapis:main' into main
Dargon789 Nov 22, 2025
f75fd03
Create build-attested-image.yml (#217)
Dargon789 Nov 22, 2025
68e0129
fix: packages/google-shopping-merchant-products/samples/package.json …
snyk-io[bot] Nov 22, 2025
6a7b541
fix: packages/google-cloud-kms-inventory/samples/package.json to redu…
snyk-io[bot] Nov 22, 2025
2670c82
fix: packages/google-cloud-certificatemanager/samples/package.json to…
snyk-io[bot] Nov 22, 2025
d828800
fix: packages/google-cloud-workstations/samples/package.json to reduc…
snyk-io[bot] Nov 22, 2025
587af2f
chore(deps): bump the npm_and_yarn group across 1 directory with 2 up…
dependabot[bot] Nov 22, 2025
448eaff
fix: packages/google-cloud-iap/samples/package.json to reduce vulnera…
snyk-io[bot] Nov 20, 2025
ea678e9
Create cargo.yml (#221)
Dargon789 Nov 24, 2025
0f8bcfc
Create ci-foundry.yml (#224)
Dargon789 Nov 24, 2025
affd9f0
fix: packages/google-cloud-dataform/samples/package.json to reduce vu…
snyk-io[bot] Dec 10, 2025
f7f6d58
fix: packages/google-devtools-cloudbuild/samples/package.json to redu…
snyk-io[bot] Dec 10, 2025
f5313e4
Create jekyll-gh-pages.yml (#230)
Dargon789 Dec 10, 2025
0252061
Update config.yml (#232)
Dargon789 Dec 10, 2025
bbd9125
fix: packages/google-cloud-workflows-executions/samples/package.json …
snyk-io[bot] Dec 10, 2025
5de7bf7
fix: packages/google-shopping-merchant-promotions/samples/package.jso…
snyk-io[bot] Dec 10, 2025
634a84d
fix: packages/google-shopping-merchant-reviews/samples/package.json t…
snyk-io[bot] Dec 10, 2025
4686bfb
fix: packages/google-cloud-filestore/samples/package.json to reduce v…
snyk-io[bot] Dec 10, 2025
cfe53c2
fix: packages/google-shopping-merchant-datasources/samples/package.js…
snyk-io[bot] Dec 10, 2025
8d3448a
fix: packages/google-cloud-asset/samples/package.json to reduce vulne…
snyk-io[bot] Dec 10, 2025
e46b556
fix: packages/google-cloud-apihub/samples/package.json to reduce vuln…
snyk-io[bot] Dec 11, 2025
0ba47f7
fix: packages/google-cloud-devicestreaming/samples/package.json to re…
snyk-io[bot] Dec 11, 2025
2c494ae
fix: packages/google-cloud-chronicle/samples/package.json to reduce v…
snyk-io[bot] Dec 11, 2025
97fabeb
Merge pull request #201 from Dargon789/snyk-fix-74f57962911666ad8e8b4…
Dargon789 Dec 12, 2025
1d9a57c
fix: packages/google-cloud-osconfig/samples/package.json to reduce vu…
snyk-io[bot] Dec 12, 2025
6c2e96e
fix: packages/google-api-apikeys/package.json to reduce vulnerabilities
snyk-io[bot] Feb 2, 2026
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
32 changes: 32 additions & 0 deletions .circleci/cargo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
version: 2.1

jobs:
build-and-test:
docker:
- image: cimg/rust:1.88.0
steps:
- checkout
- restore_cache:
keys:
- v1-cargo-{{ checksum "Cargo.lock" }}
- v1-cargo-
- run:
name: "Check formatting"
command: cargo fmt -- --check
- run:
name: "Run tests"
command: cargo test
- save_cache:
key: v1-cargo-{{ checksum "Cargo.lock" }}
paths:
- "~/.cargo/bin"
- "~/.cargo/registry/index"
- "~/.cargo/registry/cache"
- "~/.cargo/git/db"
- "target"
- run:
name: "Check formatting"
command: cargo fmt -- --check
- run:
name: "Run tests"
command: cargo test
26 changes: 26 additions & 0 deletions .circleci/ci-foundry.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Use the latest 2.1 version of CircleCI pipeline process engine.
# See: https://circleci.com/docs/configuration-reference

version: 2.1
executors:
my-custom-executor:
docker:
- image: cimg/base:stable
auth:
# ensure you have first added these secrets
# visit app.circleci.com/settings/project/github/Dargon789/foundry/environment-variables
username: $DOCKER_HUB_USER
password: $DOCKER_HUB_PASSWORD
jobs:
web3-defi-game-project-:

executor: my-custom-executor
steps:
- checkout
- run: |
# echo Hello, World!

workflows:
my-custom-workflow:
jobs:
- web3-defi-game-project-
31 changes: 31 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Use the latest 2.1 version of CircleCI pipeline process engine.
# See: https://circleci.com/docs/configuration-reference
version: 2.1

# Define a job to be invoked later in a workflow.
# See: https://circleci.com/docs/jobs-steps/#jobs-overview & https://circleci.com/docs/configuration-reference/#jobs
jobs:
say-hello:
# Specify the execution environment. You can specify an image from Docker Hub or use one of our convenience images from CircleCI's Developer Hub.
# See: https://circleci.com/docs/executor-intro/ & https://circleci.com/docs/configuration-reference/#executor-job
docker:
# Specify the version you desire here
# See: https://circleci.com/developer/images/image/cimg/base
- image: cimg/base:current

# Add steps to the job
# See: https://circleci.com/docs/jobs-steps/#steps-overview & https://circleci.com/docs/configuration-reference/#steps
steps:
# Checkout the code as the first step.
- checkout
- run:
name: "Say hello"
command: "echo Hello, World!"

# Orchestrate jobs using workflows
# See: https://circleci.com/docs/workflows/ & https://circleci.com/docs/configuration-reference/#workflows
workflows:
say-hello-workflow: # This is the name of the workflow, feel free to change it to better match your workflow.
# Inside the workflow, you define the jobs you want to run.
jobs:
- say-hello
44 changes: 44 additions & 0 deletions .github/workflows/build-attested-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: build-attested-image

on:
push:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest
permissions:
id-token: write
packages: write
contents: read
attestations: write
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push image
id: push
uses: docker/build-push-action@v5.0.0
with:
context: .
push: true
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}
- name: Attest
uses: actions/attest-build-provenance@v1
id: attest
with:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true

117 changes: 117 additions & 0 deletions .github/workflows/google.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
# This workflow will build a docker container, publish it to Google Container
# Registry, and deploy it to GKE when there is a push to the "main"
# branch.
#
# To configure this workflow:
#
# 1. Enable the following Google Cloud APIs:
#
# - Artifact Registry (artifactregistry.googleapis.com)
# - Google Kubernetes Engine (container.googleapis.com)
# - IAM Credentials API (iamcredentials.googleapis.com)
#
# You can learn more about enabling APIs at
# https://support.google.com/googleapi/answer/6158841.
#
# 2. Ensure that your repository contains the necessary configuration for your
# Google Kubernetes Engine cluster, including deployment.yml,
# kustomization.yml, service.yml, etc.
#
# 3. Create and configure a Workload Identity Provider for GitHub:
# https://github.com/google-github-actions/auth#preferred-direct-workload-identity-federation.
#
# Depending on how you authenticate, you will need to grant an IAM principal
# permissions on Google Cloud:
#
# - Artifact Registry Administrator (roles/artifactregistry.admin)
# - Kubernetes Engine Developer (roles/container.developer)
#
# You can learn more about setting IAM permissions at
# https://cloud.google.com/iam/docs/manage-access-other-resources
#
# 5. Change the values in the "env" block to match your values.

name: 'Build and Deploy to GKE'

on:
push:
branches:
- '"main"'
- '"master"'
- '"dev"'
env:
PROJECT_ID: 'my-project' # TODO: update to your Google Cloud project ID
GAR_LOCATION: 'us-central1' # TODO: update to your region
GKE_CLUSTER: 'cluster-1' # TODO: update to your cluster name
GKE_ZONE: 'us-central1-c' # TODO: update to your cluster zone
DEPLOYMENT_NAME: 'gke-test' # TODO: update to your deployment name
REPOSITORY: 'samples' # TODO: update to your Artifact Registry docker repository name
IMAGE: 'static-site'
WORKLOAD_IDENTITY_PROVIDER: 'projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider' # TODO: update to your workload identity provider

jobs:
setup-build-publish-deploy:
name: 'Setup, Build, Publish, and Deploy'
runs-on: 'ubuntu-latest'
environment: 'production'

permissions:
contents: 'read'
id-token: 'write'

steps:
- name: 'Checkout'
uses: 'actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332' # actions/checkout@v4

# Configure Workload Identity Federation and generate an access token.
#
# See https://github.com/google-github-actions/auth for more options,
# including authenticating via a JSON credentials file.
- id: 'auth'
name: 'Authenticate to Google Cloud'
uses: 'google-github-actions/auth@f112390a2df9932162083945e46d439060d66ec2' # google-github-actions/auth@v2
with:
workload_identity_provider: '${{ env.WORKLOAD_IDENTITY_PROVIDER }}'

# Authenticate Docker to Google Cloud Artifact Registry
- name: 'Docker Auth'
uses: 'docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567' # docker/login-action@v3
with:
username: 'oauth2accesstoken'
password: '${{ steps.auth.outputs.auth_token }}'
registry: '${{ env.GAR_LOCATION }}-docker.pkg.dev'

# Get the GKE credentials so we can deploy to the cluster
- name: 'Set up GKE credentials'
uses: 'google-github-actions/get-gke-credentials@6051de21ad50fbb1767bc93c11357a49082ad116' # google-github-actions/get-gke-credentials@v2
with:
cluster_name: '${{ env.GKE_CLUSTER }}'
location: '${{ env.GKE_ZONE }}'

# Build the Docker image
- name: 'Build and push Docker container'
run: |-
DOCKER_TAG="${GAR_LOCATION}-docker.pkg.dev/${PROJECT_ID}/${REPOSITORY}/${IMAGE}:${GITHUB_SHA}"

docker build \
--tag "${DOCKER_TAG}" \
--build-arg GITHUB_SHA="${GITHUB_SHA}" \
--build-arg GITHUB_REF="${GITHUB_REF}" \
.

docker push "${DOCKER_TAG}"

# Set up kustomize
- name: 'Set up Kustomize'
run: |-
curl -sfLo kustomize https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize%2Fv5.4.3/kustomize_v5.4.3_linux_amd64.tar.gz
chmod u+x ./kustomize

# Deploy the Docker image to the GKE cluster
- name: 'Deploy to GKE'
run: |-
# replacing the image name in the k8s template
./kustomize edit set image LOCATION-docker.pkg.dev/PROJECT_ID/REPOSITORY/IMAGE:TAG=$GAR_LOCATION-docker.pkg.dev/$PROJECT_ID/$REPOSITORY/$IMAGE:$GITHUB_SHA
./kustomize build . | kubectl apply -f -
kubectl rollout status deployment/$DEPLOYMENT_NAME
kubectl get services -o wide
51 changes: 51 additions & 0 deletions .github/workflows/jekyll-gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
name: Deploy Jekyll with GitHub Pages dependencies preinstalled

on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Build with Jekyll
uses: actions/jekyll-build-pages@v1
with:
source: ./
destination: ./_site
- name: Upload artifact
uses: actions/upload-pages-artifact@v3

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
2 changes: 1 addition & 1 deletion packages/google-api-apikeys/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"@types/sinon": "^17.0.4",
"c8": "^10.1.3",
"gapic-tools": "^1.0.0",
"gts": "^6.0.2",
"gts": "^7.0.0",
"jsdoc": "^4.0.4",
"jsdoc-fresh": "^4.0.0",
"jsdoc-region-tag": "^3.0.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/google-cloud-apihub/samples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"@google-cloud/apihub": "^0.5.1"
},
"devDependencies": {
"c8": "^9.0.0",
"c8": "^10.0.0",
"chai": "^4.2.0",
"mocha": "^8.0.0"
"mocha": "^11.0.1"
}
}
2 changes: 1 addition & 1 deletion packages/google-cloud-asset/samples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
},
"devDependencies": {
"chai": "^4.2.0",
"mocha": "^8.0.0"
"mocha": "^10.6.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"devDependencies": {
"c8": "^9.0.0",
"chai": "^4.2.0",
"mocha": "^9.0.0",
"mocha": "^10.6.0",
"uuid": "^9.0.0"
}
}
2 changes: 1 addition & 1 deletion packages/google-cloud-chronicle/samples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
"devDependencies": {
"c8": "^9.0.0",
"chai": "^4.2.0",
"mocha": "^8.0.0"
"mocha": "^10.6.0"
}
}
2 changes: 1 addition & 1 deletion packages/google-cloud-dataform/samples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
"devDependencies": {
"c8": "^9.0.0",
"chai": "^4.2.0",
"mocha": "^8.0.0"
"mocha": "^10.6.0"
}
}
2 changes: 1 addition & 1 deletion packages/google-cloud-devicestreaming/samples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
"devDependencies": {
"c8": "^9.0.0",
"chai": "^4.2.0",
"mocha": "^8.0.0"
"mocha": "^10.6.0"
}
}
2 changes: 1 addition & 1 deletion packages/google-cloud-dialogflow-cx/samples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
"devDependencies": {
"c8": "^9.0.0",
"chai": "^4.2.0",
"mocha": "^8.1.1"
"mocha": "^10.6.0"
}
}
2 changes: 1 addition & 1 deletion packages/google-cloud-filestore/samples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
},
"devDependencies": {
"c8": "^9.0.0",
"mocha": "^9.0.0"
"mocha": "^10.6.0"
}
}
2 changes: 1 addition & 1 deletion packages/google-cloud-iap/samples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
"devDependencies": {
"c8": "^9.0.0",
"chai": "^4.2.0",
"mocha": "^8.0.0"
"mocha": "^10.6.0"
}
}
Loading
Loading