Skip to content

Commit

Permalink
Merge pull request #197 from covalenthq/develop
Browse files Browse the repository at this point in the history
CI/CD GCR to GAR migration
  • Loading branch information
noslav authored Mar 21, 2024
2 parents 90e699b + 5b4667c commit 82b1d1f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/gcr-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ name: gcr-image
on:
push:
branches:
- "main"
- "main"
pull_request:
branches:
- "main"
- "develop"
branches:
- "main"
- "develop"

jobs:
build:
Expand All @@ -16,12 +16,12 @@ jobs:
- name: Login to GCR
uses: docker/login-action@v2
with:
registry: gcr.io
registry: us-docker.pkg.dev
username: _json_key
password: ${{ secrets.GCR_JSON_KEY }}

- uses: actions/checkout@v2
# - uses: satackey/[email protected]
- name: Build & Publish the Docker image
run: |
docker buildx create --name builder --use --platform=linux/amd64,linux/arm64 && docker buildx build --platform=linux/amd64,linux/arm64 . -t gcr.io/covalent-project/bsp-geth:latest --push
docker buildx create --name builder --use --platform=linux/amd64,linux/arm64 && docker buildx build --platform=linux/amd64,linux/arm64 . -t us-docker.pkg.dev/covalent-project/network/bsp-geth:latest --push
5 changes: 2 additions & 3 deletions .github/workflows/tag-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Login to GCR
uses: docker/login-action@v2
with:
registry: gcr.io
registry: us-docker.pkg.dev
username: _json_key
password: ${{ secrets.GCR_JSON_KEY }}

Expand All @@ -27,7 +27,7 @@ jobs:

- name: Build & Publish the Docker image
run: |
docker buildx create --name builder --use --platform=linux/amd64,linux/arm64 && docker buildx build --platform=linux/amd64,linux/arm64 . -t gcr.io/covalent-project/bsp-geth:stable -t gcr.io/covalent-project/bsp-geth:"${{ env.TAG }}" --push
docker buildx create --name builder --use --platform=linux/amd64,linux/arm64 && docker buildx build --platform=linux/amd64,linux/arm64 . -t us-docker.pkg.dev/covalent-project/network/bsp-geth:stable -t us-docker.pkg.dev/covalent-project/network/bsp-geth:"${{ env.TAG }}" --push
- uses: "marvinpinto/action-automatic-releases@latest"
with:
Expand All @@ -37,4 +37,3 @@ jobs:
files: |
*.zip
*.tar.gz

0 comments on commit 82b1d1f

Please sign in to comment.