forked from osmosis-labs/osmosis
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'osmosis-labs:main' into main
- Loading branch information
Showing
1,069 changed files
with
47,674 additions
and
24,523 deletions.
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
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
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,99 @@ | ||
# This workflow pushes new docker images to osmolabs/sqs-dev on these events: | ||
# 2. Every new commit to the roman/sqs-poc-v20 branch, | ||
# tag with: sqs-v[0-9]+.[0-9]+.[0-9], | ||
# branch push with sqs-v[0-9]+.x | ||
# `osmolabs/sqs-dev:{SHORT_SHA}-$(date +%s)` is pushed. | ||
# All the images above have support for linux/amd64 (not linux/arm64) | ||
# All the images are based on an alpine image for easy debugging. | ||
|
||
name: Build and Push SQS Images | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
tags: | ||
- sqs-v[0-9]+.[0-9]+.[0-9] | ||
branches: | ||
- roman/sqs-poc-v20 | ||
- sqs-v[0-9]+.x | ||
|
||
env: | ||
RUNNER_BASE_IMAGE_ALPINE: alpine:3.17 | ||
SQS_DEV_IMAGE_REPOSITORY: osmolabs/sqs-dev | ||
SQS_PROD_IMAGE_REPOSITORY: osmolabs/sqs | ||
|
||
jobs: | ||
docker: | ||
runs-on: self-hosted | ||
steps: | ||
- name: Check out repo | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Login to DockerHub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: Find go version | ||
run: | | ||
GO_VERSION=$(cat go.mod | grep -E 'go [0-9].[0-9]+' | cut -d ' ' -f 2) | ||
echo "GO_VERSION=$GO_VERSION" >> $GITHUB_ENV | ||
- name: Create Docker Image Tag for release candidate on Tag Push | ||
if: startsWith(github.ref, 'refs/tags/sqs-v') | ||
run: | | ||
GITHUB_TAG=${{ github.ref_name }} | ||
echo "DOCKER_IMAGE_TAG=${GITHUB_TAG#v}" >> $GITHUB_ENV | ||
echo "OSMOSIS_VERSION=${{ github.ref_name }}" >> $GITHUB_ENV | ||
- name: Create Docker Image Tag for sqs-vx.x.x branch | ||
if: startsWith(github.ref, 'sqs-v') | ||
run: | | ||
GITHUB_TAG=${{ github.ref_name }} | ||
echo "DOCKER_IMAGE_TAG=${SHORT_SHA}-$(date +%s)" >> $GITHUB_ENV | ||
echo "OSMOSIS_VERSION=${{ github.ref_name }}" >> $GITHUB_ENV | ||
- name: Create Docker Image Tag for roman/sqs-poc-v20 branch | ||
if: github.ref == 'refs/heads/roman/sqs-poc-v20' | ||
run: | | ||
SHORT_SHA=$(echo ${GITHUB_SHA} | cut -c1-8) | ||
echo "DOCKER_IMAGE_TAG=${SHORT_SHA}-$(date +%s)" >> $GITHUB_ENV | ||
echo "OSMOSIS_VERSION=$SHORT_SHA" >> $GITHUB_ENV | ||
- name: Build and Push Docker Images Dev | ||
uses: docker/build-push-action@v5 | ||
with: | ||
file: Dockerfile | ||
context: . | ||
push: true | ||
platforms: linux/amd64 | ||
build-args: | | ||
GO_VERSION=${{ env.GO_VERSION }} | ||
RUNNER_IMAGE=${{ env.RUNNER_BASE_IMAGE_ALPINE }} | ||
GIT_VERSION=${{ env.OSMOSIS_VERSION }} | ||
GIT_COMMIT=${{ github.sha }} | ||
tags: | | ||
${{ env.SQS_DEV_IMAGE_REPOSITORY }}:${{ env.DOCKER_IMAGE_TAG }} | ||
${{ env.SQS_DEV_IMAGE_REPOSITORY }}:sqs-latest | ||
- name: Build and Push Docker Images Prod | ||
uses: docker/build-push-action@v5 | ||
with: | ||
file: Dockerfile | ||
context: . | ||
push: true | ||
platforms: linux/amd64 | ||
build-args: | | ||
GO_VERSION=${{ env.GO_VERSION }} | ||
RUNNER_IMAGE=${{ env.RUNNER_BASE_IMAGE_ALPINE }} | ||
GIT_VERSION=${{ env.OSMOSIS_VERSION }} | ||
GIT_COMMIT=${{ github.sha }} | ||
tags: | | ||
${{ env.SQS_PROD_IMAGE_REPOSITORY }}:${{ env.DOCKER_IMAGE_TAG }} | ||
${{ env.SQS_PROD_IMAGE_REPOSITORY }}:sqs-latest |
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 |
---|---|---|
|
@@ -5,15 +5,15 @@ on: | |
workflow_dispatch: | ||
pull_request: | ||
paths: | ||
- 'proto/**' | ||
- '**/**.proto' | ||
- '**/**.pb.go' | ||
- '**/**.sum' | ||
- '**/client/**.go' | ||
- 'scripts/ci/**' | ||
- 'Makefile' | ||
- 'Dockerfile' | ||
- '.github/workflows/check-generated.yml' | ||
- "proto/**" | ||
- "**/**.proto" | ||
- "**/**.pb.go" | ||
- "**/**.sum" | ||
- "**/client/**.go" | ||
- "scripts/ci/**" | ||
- "Makefile" | ||
- "Dockerfile" | ||
- ".github/workflows/check-generated.yml" | ||
|
||
permissions: | ||
contents: write | ||
|
@@ -26,21 +26,19 @@ jobs: | |
check-proto: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
uses: actions/checkout@v4 | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
- | ||
name: "Check protobuf generated code" | ||
- name: "Check protobuf generated code" | ||
run: | | ||
chmod +x ./scripts/protocgen.sh | ||
make proto-all | ||
make run-querygen | ||
- | ||
name: Commit changes | ||
- name: Commit changes | ||
run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git add *.go | ||
git add *.proto | ||
git commit -m "Generated protofile changes" || echo "No changes to commit" | ||
git push | ||
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
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 |
---|---|---|
|
@@ -26,6 +26,8 @@ permissions: | |
|
||
jobs: | ||
comment: | ||
permissions: | ||
pull-requests: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
|
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
Oops, something went wrong.