adaper mulit domain and build docker #1
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
name: Build docker image | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
if: github.repository == 'crustio/ethda-home' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20.4.0' | |
- uses: pnpm/action-setup@v3 | |
with: | |
version: 8 | |
- name: Run install | |
run: pnpm install --frozen-lockfile | |
- name: Build for production | |
run: pnpm build | |
- name: Build docker and publish | |
run: | | |
docker build -t crustio/ethda-home:latest . | |
docker login -u ${{ secrets.DOCKER_HUB_USER_NAME }} -p ${{ secrets.DOCKER_HUB_PASSWORD }} | |
docker push crustio/ethda-home:latest | |
- name: Update docker compose | |
run: ${{ secrets.RUN_CMD }} |