Skip to content

Commit

Permalink
v8
Browse files Browse the repository at this point in the history
  • Loading branch information
davidleonm committed Nov 26, 2024
1 parent 6ea7a33 commit 0e441e7
Show file tree
Hide file tree
Showing 2 changed files with 104 additions and 104 deletions.
206 changes: 103 additions & 103 deletions .github/workflows/on-push-to-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,20 +77,20 @@ jobs:
with:
platforms: ${{ env.PLATFORMS }}

- name: Build and push Dashboard
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
platforms: ${{ env.PLATFORMS }}
push: true
tags: |
weatherstationproject/dashboard:${{ steps.dashboard_version.outputs.version }}
weatherstationproject/dashboard:latest
# - name: Build and push Dashboard
# 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
# platforms: ${{ env.PLATFORMS }}
# push: true
# tags: |
# weatherstationproject/dashboard:${{ steps.dashboard_version.outputs.version }}
# weatherstationproject/dashboard:latest

- name: Build and push air parameters service
uses: docker/build-push-action@v6
Expand All @@ -107,92 +107,92 @@ jobs:
weatherstationproject/air-parameter-service:${{ steps.air_parameters_version.outputs.version }}
weatherstationproject/air-parameter-service:latest
- name: Build and push ambient temperatures
uses: docker/build-push-action@v6
with:
context: .
build-args: |
"INCLUDE_NPM_ARG=false"
"PROJECT_NAME_ARG=WeatherStationProject.Dashboard.AmbientTemperatureService"
"ENVIRONMENT_ARG=Production"
file: ./Dockerfile
platforms: ${{ env.PLATFORMS }}
push: true
tags: |
weatherstationproject/ambient-temperature-service:${{ steps.ambient_temperatures_version.outputs.version }}
weatherstationproject/ambient-temperature-service:latest
- name: Build and push authentication service
uses: docker/build-push-action@v6
with:
context: .
build-args: |
"INCLUDE_NPM_ARG=false"
"PROJECT_NAME_ARG=WeatherStationProject.Dashboard.AuthenticationService"
"ENVIRONMENT_ARG=Production"
file: ./Dockerfile
platforms: ${{ env.PLATFORMS }}
push: true
tags: |
weatherstationproject/authentication-service:${{ steps.authentication_version.outputs.version }}
weatherstationproject/authentication-service:latest
- name: Build and push gateway service
uses: docker/build-push-action@v6
with:
context: .
build-args: |
"INCLUDE_NPM_ARG=false"
"PROJECT_NAME_ARG=WeatherStationProject.Dashboard.GatewayService"
"ENVIRONMENT_ARG=Production"
file: ./Dockerfile
platforms: ${{ env.PLATFORMS }}
push: true
tags: |
weatherstationproject/gateway-service:${{ steps.gateway_version.outputs.version }}
weatherstationproject/gateway-service:latest
- name: Build and push ground temperature service
uses: docker/build-push-action@v6
with:
context: .
build-args: |
"INCLUDE_NPM_ARG=false"
"PROJECT_NAME_ARG=WeatherStationProject.Dashboard.GroundTemperatureService"
"ENVIRONMENT_ARG=Production"
file: ./Dockerfile
platforms: ${{ env.PLATFORMS }}
push: true
tags: |
weatherstationproject/ground-temperature-service:${{ steps.ground_temperatures_version.outputs.version }}
weatherstationproject/ground-temperature-serviced:latest
- name: Build and push rainfall service
uses: docker/build-push-action@v6
with:
context: .
build-args: |
"INCLUDE_NPM_ARG=false"
"PROJECT_NAME_ARG=WeatherStationProject.Dashboard.RainfallService"
"ENVIRONMENT_ARG=Production"
file: ./Dockerfile
platforms: ${{ env.PLATFORMS }}
push: true
tags: |
weatherstationproject/rainfall-service:${{ steps.rainfall_version.outputs.version }}
weatherstationproject/rainfall-service:latest
- name: Build and push wind measurements service
uses: docker/build-push-action@v6
with:
context: .
build-args: |
"INCLUDE_NPM_ARG=false"
"PROJECT_NAME_ARG=WeatherStationProject.Dashboard.WindMeasurementsService"
"ENVIRONMENT_ARG=Production"
file: ./Dockerfile
platforms: ${{ env.PLATFORMS }}
push: true
tags: |
weatherstationproject/wind-measurements-service:${{ steps.wind_measurements_version.outputs.version }}
weatherstationproject/wind-measurements-service:latest
# - name: Build and push ambient temperatures
# uses: docker/build-push-action@v6
# with:
# context: .
# build-args: |
# "INCLUDE_NPM_ARG=false"
# "PROJECT_NAME_ARG=WeatherStationProject.Dashboard.AmbientTemperatureService"
# "ENVIRONMENT_ARG=Production"
# file: ./Dockerfile
# platforms: ${{ env.PLATFORMS }}
# push: true
# tags: |
# weatherstationproject/ambient-temperature-service:${{ steps.ambient_temperatures_version.outputs.version }}
# weatherstationproject/ambient-temperature-service:latest

# - name: Build and push authentication service
# uses: docker/build-push-action@v6
# with:
# context: .
# build-args: |
# "INCLUDE_NPM_ARG=false"
# "PROJECT_NAME_ARG=WeatherStationProject.Dashboard.AuthenticationService"
# "ENVIRONMENT_ARG=Production"
# file: ./Dockerfile
# platforms: ${{ env.PLATFORMS }}
# push: true
# tags: |
# weatherstationproject/authentication-service:${{ steps.authentication_version.outputs.version }}
# weatherstationproject/authentication-service:latest

# - name: Build and push gateway service
# uses: docker/build-push-action@v6
# with:
# context: .
# build-args: |
# "INCLUDE_NPM_ARG=false"
# "PROJECT_NAME_ARG=WeatherStationProject.Dashboard.GatewayService"
# "ENVIRONMENT_ARG=Production"
# file: ./Dockerfile
# platforms: ${{ env.PLATFORMS }}
# push: true
# tags: |
# weatherstationproject/gateway-service:${{ steps.gateway_version.outputs.version }}
# weatherstationproject/gateway-service:latest

# - name: Build and push ground temperature service
# uses: docker/build-push-action@v6
# with:
# context: .
# build-args: |
# "INCLUDE_NPM_ARG=false"
# "PROJECT_NAME_ARG=WeatherStationProject.Dashboard.GroundTemperatureService"
# "ENVIRONMENT_ARG=Production"
# file: ./Dockerfile
# platforms: ${{ env.PLATFORMS }}
# push: true
# tags: |
# weatherstationproject/ground-temperature-service:${{ steps.ground_temperatures_version.outputs.version }}
# weatherstationproject/ground-temperature-serviced:latest

# - name: Build and push rainfall service
# uses: docker/build-push-action@v6
# with:
# context: .
# build-args: |
# "INCLUDE_NPM_ARG=false"
# "PROJECT_NAME_ARG=WeatherStationProject.Dashboard.RainfallService"
# "ENVIRONMENT_ARG=Production"
# file: ./Dockerfile
# platforms: ${{ env.PLATFORMS }}
# push: true
# tags: |
# weatherstationproject/rainfall-service:${{ steps.rainfall_version.outputs.version }}
# weatherstationproject/rainfall-service:latest

# - name: Build and push wind measurements service
# uses: docker/build-push-action@v6
# with:
# context: .
# build-args: |
# "INCLUDE_NPM_ARG=false"
# "PROJECT_NAME_ARG=WeatherStationProject.Dashboard.WindMeasurementsService"
# "ENVIRONMENT_ARG=Production"
# file: ./Dockerfile
# platforms: ${{ env.PLATFORMS }}
# push: true
# tags: |
# weatherstationproject/wind-measurements-service:${{ steps.wind_measurements_version.outputs.version }}
# weatherstationproject/wind-measurements-service:latest
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ARG ENVIRONMENT_ARG
ARG BUILDPLATFORM

# Pull down the image with .NET Core SDK
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS build
FROM --platform=linux/arm64/v8 mcr.microsoft.com/dotnet/sdk:8.0-alpine AS build
LABEL maintainer="David Leon <david.leon.m@gmail.com>"

# Message to show the platform
Expand Down

0 comments on commit 0e441e7

Please sign in to comment.