Skip to content

no message

no message #25

Workflow file for this run

name: on-push-to-main
concurrency:
group: on-push-to-main
cancel-in-progress: true
on:
push:
branches:
- '*' # TODO - master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET 8.x
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.x'
# - name: Install dependencies
# run: npm install --prefix ./Code/src/WeatherStationProject.Dashboard.App/ClientApp install --force && dotnet restore ./Code/WeatherStationProjectDashboard.sln
# - name: Build
# run: dotnet build ./Code/WeatherStationProjectDashboard.sln
# - name: Test with the dotnet CLI
# run: dotnet test
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Get version
id: dashboard_version
uses: KageKirin/get-csproj-version@v1
with:
file: ./Code/src/WeatherStationProject.Dashboard.App/WeatherStationProject.Dashboard.App.csproj
- name: Set up QEMU
uses: docker/setup-buildx-action@v3
with:
platforms: linux/arm64
- name: Build and push Dashboard
id: push
uses: docker/build-push-action@v6
with:
context: .
build-args: |
"INCLUDE_NPM_ARG=true"
"PROJECT_NAME_ARG=WeatherStationProject.Dashboard.App"
"ENVIRONMENT_ARG=Production"
file: ./Dockerfile
push: true
tags: |
weatherstationproject/dashboard:${{ steps.dashboard_version.outputs.version }}
weatherstationproject/dashboard:latest