Use Bridge NPM Package #2449
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: CICD | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| release: | |
| types: | |
| - published | |
| workflow_dispatch: | |
| permissions: read-all | |
| env: | |
| DOTNET_NOLOGO: true | |
| DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true | |
| DOTNET_CLI_TELEMETRY_OPTOUT: true | |
| jobs: | |
| ci: | |
| name: CI | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 'Checkout' | |
| uses: actions/checkout@v6 | |
| with: | |
| lfs: true | |
| fetch-depth: 0 | |
| - name: Set up Docker with containerd | |
| uses: docker/setup-docker-action@v5 | |
| with: | |
| daemon-config: | | |
| { | |
| "features": { | |
| "containerd-snapshotter": true | |
| } | |
| } | |
| - name: 'Install InvokeBuild Module' | |
| shell: pwsh | |
| run: Install-Module -Name InvokeBuild -Force | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v4 | |
| - name: 'Restore' | |
| shell: pwsh | |
| run: .\restore.ps1 -Instance ${{github.run_id}} | |
| - name: 'Format' | |
| shell: pwsh | |
| run: .\format.ps1 -Instance ${{github.run_id}} | |
| - name: 'Version' | |
| shell: pwsh | |
| run: .\version.ps1 -Instance ${{github.run_id}} | |
| - name: 'Build' | |
| shell: pwsh | |
| run: .\build.ps1 -Instance ${{github.run_id}} | |
| - name: 'Test' | |
| shell: pwsh | |
| run: .\test.ps1 -Instance ${{github.run_id}} | |
| - name: 'Pack' | |
| shell: pwsh | |
| run: .\pack.ps1 -Instance ${{github.run_id}} | |
| - name: 'Publish Artefacts' | |
| uses: actions/upload-artifact@v7.0.1 | |
| with: | |
| name: .trash | |
| path: '.trash' | |
| include-hidden-files: true | |
| cd: | |
| name: CD | |
| needs: ci | |
| if: github.event_name == 'release' | |
| environment: | |
| name: 'DockerHub' | |
| url: https://hub.docker.com/r/tiksn/fossa-ui | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 'Checkout' | |
| uses: actions/checkout@v6 | |
| with: | |
| lfs: true | |
| fetch-depth: 0 | |
| - name: 'Download Artefact' | |
| uses: actions/download-artifact@v8.0.1 | |
| with: | |
| name: '.trash' | |
| path: './.trash' | |
| - name: Set up Docker with containerd | |
| uses: docker/setup-docker-action@v5 | |
| with: | |
| daemon-config: | | |
| { | |
| "features": { | |
| "containerd-snapshotter": true | |
| } | |
| } | |
| - name: 'Install InvokeBuild Module' | |
| shell: pwsh | |
| run: Install-Module -Name InvokeBuild -Force | |
| - name: 'Publish' | |
| env: | |
| DOCKER_ACCESS_TOKEN: ${{secrets.DOCKER_ACCESS_TOKEN}} | |
| shell: pwsh | |
| run: .\publish.ps1 -Instance ${{github.run_id}} |