Skip to content

Support U2U chain

Support U2U chain #9

Workflow file for this run

name: storage contract node builder (main)
on:
workflow_dispatch:
push:
branches: [ "main" ]
jobs:
build:
if: github.repository == 'crustio/storage-contract-node'
runs-on: ubuntu-latest
steps:
- 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.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y%m%d%H%M%S')"
- name: Build and push
id: docker_build
uses: docker/build-push-action@v3
with:
context: .
file: ./docker/Dockerfile
push: true
tags: |
crustio/storage-contract-node:${{ steps.extract_branch.outputs.branch }}-latest
crustio/storage-contract-node:${{ steps.extract_branch.outputs.branch }}-${{ env.date }}