-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rebased merkl-lite sync #56
Open
clmntsnr
wants to merge
18
commits into
AngleProtocol:main
Choose a base branch
from
AngleProtocol:cleanup
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
6bef9dc
merge (#50) (#2)
indaviande fc96fef
Puffer Branding (#3)
indaviande 55b41bd
chore: update app
Picodes 2b926c2
chore: update app
Picodes 3f4fa4a
fix: lint
Picodes 85e15ff
Merge remote-tracking branch 'merkl-app/main' (#4)
hugolxt 3e35837
update config for puffer (#5)
hugolxt 95b340d
Sync Merkl-app (#55)
hugolxt 0c7da43
Sync/rebased (#57)
hugolxt 08b5736
Puffer Branding (#3)
indaviande 42b1b25
chore: update app
Picodes 66d3222
fix: lint
Picodes b146a14
Merge remote-tracking branch 'merkl-app/main' (#4)
hugolxt 9921d60
update config for puffer (#5)
hugolxt 8dccc9c
clean hero
clmntsnr 3abaf00
update: config
clmntsnr cc131b8
revert
clmntsnr 601b2df
restore
clmntsnr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: Trigger production deployment | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v[0-9]+.[0-9]+.[0-9]+' | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
tag-image: | ||
runs-on: ubuntu-latest | ||
env: | ||
IMAGE_URL: europe-west1-docker.pkg.dev/angle-artifacts/angle-docker-registry/merkl-app | ||
steps: | ||
- uses: 'google-github-actions/auth@v0' | ||
with: | ||
credentials_json: '${{ secrets.GCLOUD_SECRET_ARTIFACTS }}' | ||
- name: Login to Docker | ||
run: gcloud auth configure-docker europe-west1-docker.pkg.dev | ||
- name: Pull and tag image | ||
run: | | ||
export SHORT_SHA=${GITHUB_SHA:0:7} | ||
export VERSION=${GITHUB_REF#refs/tags/} | ||
docker pull $IMAGE_URL:$SHORT_SHA | ||
docker tag $IMAGE_URL:$SHORT_SHA $IMAGE_URL:$VERSION | ||
docker push $IMAGE_URL:$VERSION | ||
trigger-production-deployment: | ||
runs-on: ubuntu-latest | ||
needs: tag-image | ||
steps: | ||
- name: Install dependencies | ||
run: | | ||
sudo snap install yq | ||
- name: Clone deployments repo | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: AngleProtocol/deployments | ||
token: ${{ secrets.ACCESS_TOKEN }} | ||
path: deployments | ||
- name: Modify config.production.yaml and push to deployments | ||
run: | | ||
cd deployments | ||
|
||
export VERSION=${GITHUB_REF#refs/tags/} | ||
yq -i '.merkl-app.version = strenv(VERSION)' ./config.production.yaml | ||
|
||
git config --global user.email "[email protected]" | ||
git config --global user.name "BaptistG" | ||
|
||
git add ./config.production.yaml | ||
git commit -m "Update config.production.yaml with merkl-app version $VERSION" | ||
|
||
git push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
name: Build image and trigger staging deployment | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
build-image: | ||
runs-on: ubuntu-latest | ||
env: | ||
IMAGE_URL: europe-west1-docker.pkg.dev/angle-artifacts/angle-docker-registry/merkl-app | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
token: '${{ secrets.ACCESS_TOKEN }}' | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- uses: 'google-github-actions/auth@v0' | ||
with: | ||
credentials_json: '${{ secrets.GCLOUD_SECRET_ARTIFACTS }}' | ||
- name: Login to Docker | ||
run: gcloud auth configure-docker europe-west1-docker.pkg.dev | ||
- name: Build image | ||
run: | | ||
export SHORT_SHA=${GITHUB_SHA:0:7} | ||
docker pull $IMAGE_URL:latest || true | ||
docker build --cache-from $IMAGE_URL:latest --tag $IMAGE_URL:$SHORT_SHA --tag $IMAGE_URL:latest . | ||
- name: Push image | ||
run: | | ||
export SHORT_SHA=${GITHUB_SHA:0:7} | ||
docker push $IMAGE_URL:$SHORT_SHA | ||
|
||
trigger-staging-deployment: | ||
runs-on: ubuntu-latest | ||
needs: build-image | ||
steps: | ||
- name: Install dependencies | ||
run: | | ||
sudo snap install yq | ||
- name: Clone deployments repo | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: AngleProtocol/deployments | ||
token: ${{ secrets.ACCESS_TOKEN }} | ||
path: deployments | ||
- name: Modify config.staging.yaml and push to deployments | ||
run: | | ||
cd deployments | ||
|
||
export SHORT_SHA=${GITHUB_SHA:0:7} | ||
|
||
yq -i '.merkl-app.version = strenv(SHORT_SHA)' ./config.staging.yaml | ||
|
||
git config --global user.email "[email protected]" | ||
git config --global user.name "BaptistG" | ||
|
||
git add ./config.staging.yaml | ||
git commit -m "Update config.staging.yaml with merkl-app version $SHORT_SHA" | ||
|
||
git push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule dappkit
updated
19 files
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we keep Merkl infos as default instead of puffers ones?