Skip to content

Still trying to fix the config file #16

Still trying to fix the config file

Still trying to fix the config file #16

Workflow file for this run

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/setup@v4.1.0
with:
versionSpec: '6.3.x'
- id: determine_version
name: Determine Version
uses: gittools/actions/gitversion/execute@v4.1.0
- name: Install Octopus Deploy CLI
uses: OctopusDeploy/install-octocli@v1.1.1
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/create-release-action@v1.1.1
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 }}