Skip to content

Setup CI/CD (#66)

Setup CI/CD (#66) #4

# name: DockerHub Image Gen
# on:
# workflow_run:
# workflows: ["Run E2E Tests"]
# types:
# - completed
# jobs:
# deploy:
# runs-on: ubuntu-latest
# if: ${{ github.event.workflow_run.conclusion == 'success' && github.ref == 'refs/heads/main' }}
# steps:
# - name: Checkout code
# uses: actions/checkout@v2
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v1
# - name: Login to DockerHub
# uses: docker/login-action@v1
# with:
# username: ${{ secrets.DOCKER_USERNAME }}
# password: ${{ secrets.DOCKER_PASSWORD }}
# - name: Build and Push Docker Image
# uses: docker/build-push-action@v2
# with:
# context: .
# target: prod
# platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6
# push: true
# tags: thirdweb/web3-api:0.1.0