feat: trust wallet connection (#3231) #1379
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 workflow pushes osmosis docker images on every commit to master. | |
# | |
# The following images are pushed: | |
# | |
# - `osmolabs/osmosis-frontend:{COMMIT_SHORT_SHA} | |
# - `osmolabs/osmosis-frontend-testnet:{COMMIT_SHORT_SHA} | |
# | |
# All the images above have support for linux/amd64 and linux/arm64. | |
# | |
# Due to QEMU virtualization used to build multi-platform docker images | |
# this workflow might take a while to complete. | |
name: Push Docker Images | |
on: | |
push: | |
branches: | |
- master | |
- stage | |
env: | |
FRONTEND_DOCKER_REPOSITORY: osmolabs/osmosis-frontend | |
TESTNET_DOCKER_REPOSITORY: osmolabs/osmosis-frontend-testnet | |
jobs: | |
docker: | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: Check out repository | |
uses: actions/checkout@v4 | |
- | |
name: Get Short SHA | |
uses: benjlevesque/[email protected] | |
- | |
name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- | |
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: Get current date | |
run: | | |
echo "DATE=$(date +%s)" >> $GITHUB_ENV | |
- | |
name: Build and push (main) | |
uses: docker/build-push-action@v5 | |
with: | |
file: ./docker/Dockerfile | |
context: . | |
push: true | |
platforms: linux/amd64 | |
tags: | | |
${{ env.FRONTEND_DOCKER_REPOSITORY }}:${{ github.ref_name }}-${{ env.SHA }} | |
${{ env.FRONTEND_DOCKER_REPOSITORY }}:${{ github.ref_name }}-${{ env.SHA }}-${{ env.DATE }} | |
${{ env.FRONTEND_DOCKER_REPOSITORY }}:latest | |
- | |
name: Build and push (testnet) | |
uses: docker/build-push-action@v5 | |
with: | |
file: ./docker/Dockerfile.testnet | |
context: . | |
push: true | |
platforms: linux/amd64 | |
tags: | | |
${{ env.TESTNET_DOCKER_REPOSITORY }}:${{ github.ref_name }}-${{ env.SHA }} | |
${{ env.TESTNET_DOCKER_REPOSITORY }}:${{ github.ref_name }}-${{ env.SHA }}-${{ env.DATE }} | |
${{ env.TESTNET_DOCKER_REPOSITORY }}:latest |