Fixed arguments #14
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: Docker Build | |
| 'on': | |
| workflow_dispatch: {} | |
| push: {} | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v1 | |
| with: | |
| fetch-depth: '0' | |
| - name: Set up DotNET Core | |
| uses: actions/setup-dotnet@v1 | |
| with: | |
| dotnet-version: 3.1.402 | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@v2 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v2 | |
| - name: Login to Docker Hub | |
| uses: docker/login-action@v2 | |
| with: | |
| username: ${{ secrets.DOCKERHUB_SAMPLES_USERNAME }} | |
| password: ${{ secrets.DOCKERHUB_SAMPLES_PASSWORD }} | |
| - name: Install GitVersion | |
| uses: gittools/actions/gitversion/[email protected] | |
| with: | |
| versionSpec: '6.3.x' | |
| - id: determine_version | |
| name: Determine Version | |
| uses: gittools/actions/gitversion/[email protected] | |
| with: | |
| overrideConfig: mode=Mainline | |
| - name: Install Octopus Deploy CLI | |
| uses: OctopusDeploy/[email protected] | |
| with: | |
| version: latest | |
| - name: Install Dependencies | |
| run: dotnet restore | |
| shell: bash | |
| - name: Test | |
| run: dotnet test -l:trx | |
| shell: bash | |
| - if: always() | |
| name: Report | |
| uses: dorny/test-reporter@v1 | |
| with: | |
| name: DotNET Tests | |
| path: '**/*.trx' | |
| reporter: dotnet-trx | |
| fail-on-error: 'false' | |
| - name: Build and push | |
| uses: docker/build-push-action@v3 | |
| with: | |
| context: RandomQuotes | |
| push: true | |
| tags: octopussamples/randomquotes:${{ steps.determine_version.outputs.semVer }} | |
| - name: Create Octopus Release | |
| uses: OctopusDeploy/[email protected] | |
| with: | |
| api_key: ${{ secrets.OCTOPUS_API_TOKEN }} | |
| project: Random Quotes | |
| server: ${{ secrets.OCTOPUS_SERVER_URL }} | |
| deploy_to: Dev | |
| packages: Deploy container to Kubernetes:randomquotes:${{ steps.determine_version.outputs.semVer }} |