remove nodeid duplicate validate (#193) #97
Workflow file for this run
This file contains hidden or 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 and Push | |
| # This workflow will run on master branch and on any pull requests targeting master | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| - 'pre-v*' | |
| jobs: | |
| build-and-push: | |
| name: Build and push Docker images | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Get tag | |
| id: tag | |
| run: echo "TAG=$(git describe --tags HEAD)" >> $GITHUB_OUTPUT | |
| - name: Get current date | |
| id: date | |
| run: echo "BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_OUTPUT | |
| - 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: Build Main image and push to Docker Hub | |
| uses: docker/build-push-action@v2 | |
| with: | |
| context: . | |
| platforms: linux/amd64,linux/arm64 | |
| push: true | |
| build-args: | | |
| VERSION=${{ steps.tag.outputs.TAG }} | |
| COMMIT_HASH=${{ github.sha }} | |
| BUILD_DATE=${{ steps.date.outputs.BUILD_DATE }} | |
| tags: ${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }}:${{ steps.tag.outputs.TAG }},${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }}:latest | |
| - name: Build UI image and push to Docker Hub | |
| uses: docker/build-push-action@v2 | |
| with: | |
| context: ./ui | |
| platforms: linux/amd64,linux/arm64 | |
| push: true | |
| tags: ${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }}-ui:${{ steps.tag.outputs.TAG }},${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }}-ui:latest | |
| - name: Build Init-Cert image and push to Docker Hub | |
| uses: docker/build-push-action@v2 | |
| with: | |
| context: . | |
| file: ./cmd/init-cert/Dockerfile | |
| platforms: linux/amd64,linux/arm64 | |
| push: true | |
| tags: ${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }}-init-cert:${{ steps.tag.outputs.TAG }},${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }}-init-cert:latest | |
| - name: Build client image and push to Docker Hub | |
| uses: docker/build-push-action@v2 | |
| with: | |
| context: . | |
| file: ./cmd/client/Dockerfile | |
| platforms: linux/amd64,linux/arm64 | |
| push: true | |
| tags: ${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }}-client:${{ steps.tag.outputs.TAG }},${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }}-client:latest |