Skip to content

Merge pull request #180 from gnoswap-labs/GSW-807-protocol-fees #93

Merge pull request #180 from gnoswap-labs/GSW-807-protocol-fees

Merge pull request #180 from gnoswap-labs/GSW-807-protocol-fees #93

name: Public gnoswap contract deploy
on:
push:
branches: [ "main" ]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
contract-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set env
run: |
echo "GITSHA=${GITHUB_SHA::8}" >> $GITHUB_ENV
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_ACCESS_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: |
gnoswap/contract-deploy:latest
gnoswap/contract-deploy:${{ env.GITSHA }}