Skip to content

Commit

Permalink
Sets building and publishing images in CI to run when sdk version cha…
Browse files Browse the repository at this point in the history
…nges. Updates to .NET 8.0. (#258)

* Sets building and publishing images in CI to run when sdk version changes

Signed-off-by: Elena Kolevska <[email protected]>

* Update all .net images

Signed-off-by: Elena Kolevska <[email protected]>

---------

Signed-off-by: Elena Kolevska <[email protected]>
  • Loading branch information
elena-kolevska authored Feb 11, 2025
1 parent da1595d commit f1b8394
Show file tree
Hide file tree
Showing 15 changed files with 31 additions and 15 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/feed-generator-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ on:
- 'feed-generator/**'
- '.github/workflows/feed-generator-build.yml'
- '.github/workflows/dapr-deploy.yml'
- 'Directory.Packages.props'
pull_request:
branches:
- master
paths:
- 'feed-generator/**'
- 'Directory.Packages.props'

jobs:
build:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/hashtag-actor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ on:
- 'hashtag-actor/**'
- '.github/workflows/hashtag-actor.yml'
- '.github/workflows/dapr-deploy.yml'
- 'Directory.Packages.props'
pull_request:
branches:
- master
paths:
- 'hashtag-actor/**'
- 'Directory.Packages.props'

jobs:
build:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/hashtag-counter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Licensed under the MIT License.
# ------------------------------------------------------------

name: build-hashtag-app
name: build-hashtag-counter

on:
push:
Expand All @@ -13,11 +13,13 @@ on:
- 'hashtag-counter/**'
- '.github/workflows/hashtag-counter.yml'
- '.github/workflows/dapr-deploy.yml'
- 'Directory.Packages.props'
pull_request:
branches:
- master
paths:
- 'hashtag-counter/**'
- 'Directory.Packages.props'

jobs:
build:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/message-analyzer-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ on:
- 'message-analyzer/**'
- '.github/workflows/message-analyzer-build.yml'
- '.github/workflows/dapr-deploy.yml'
- 'Directory.Packages.props'
pull_request:
branches:
- master
paths:
- 'message-analyzer/**'
- 'Directory.Packages.props'

jobs:
build:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/pubsub-workflow-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@ on:
- 'pubsub-workflow/**'
- '.github/workflows/dapr-deploy.yml'
- '.github/workflows/pubsub-workflow-build.yml'
- 'Directory.Packages.props'
pull_request:
branches:
- master
paths:
- 'pubsub-workflow/**'
- '.github/workflows/pubsub-workflow-build.yml'
- 'Directory.Packages.props'

jobs:
build:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ on:
- 'snapshot/**'
- '.github/workflows/snapshot.yml'
- '.github/workflows/dapr-deploy.yml'
- 'Directory.Packages.props'
pull_request:
branches:
- master
paths:
- 'snapshot/**'
- 'Directory.Packages.props'

jobs:
build:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/validation-worker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ on:
- 'validation-worker/**'
- '.github/workflows/validation-worker-build.yml'
- '.github/workflows/dapr-deploy.yml'
- 'Directory.Packages.props'
pull_request:
branches:
- master
paths:
- 'validation-worker/**'
- 'Directory.Packages.props'

jobs:
build:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/workflow-gen-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ on:
- 'workflow-gen/**'
- '.github/workflows/workflow-gen-build.yml'
- '.github/workflows/dapr-deploy.yml'
- 'Directory.Packages.props'
pull_request:
branches:
- master
paths:
- 'workflow-gen/**'
- 'Directory.Packages.props'

jobs:
build:
Expand Down
4 changes: 2 additions & 2 deletions feed-generator/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
# Licensed under the MIT License.
# ------------------------------------------------------------

FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
WORKDIR /app
EXPOSE 3000 9988

FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build-env
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build-env
WORKDIR /app

COPY . ./
Expand Down
4 changes: 2 additions & 2 deletions hashtag-actor/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
# Licensed under the MIT License.
# ------------------------------------------------------------

FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
WORKDIR /app
EXPOSE 80

FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build-env
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build-env
WORKDIR /app

COPY . ./
Expand Down
4 changes: 2 additions & 2 deletions hashtag-counter/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
# Licensed under the MIT License.
# ------------------------------------------------------------

FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
WORKDIR /app
EXPOSE 80

FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build-env
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build-env
WORKDIR /app

COPY . ./
Expand Down
4 changes: 2 additions & 2 deletions message-analyzer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
# Licensed under the MIT License.
# -

FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
WORKDIR /app
EXPOSE 80

FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build-env
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build-env
WORKDIR /app

COPY . ./
Expand Down
4 changes: 2 additions & 2 deletions pubsub-workflow/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
# Licensed under the MIT License.
# ------------------------------------------------------------

FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
WORKDIR /app
EXPOSE 3000 9988

FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build-env
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build-env
WORKDIR /app

COPY . ./
Expand Down
4 changes: 2 additions & 2 deletions snapshot/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
# Licensed under the MIT License.
# ------------------------------------------------------------

FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
WORKDIR /app
EXPOSE 80

FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build-env
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build-env
WORKDIR /app

COPY . ./
Expand Down
4 changes: 2 additions & 2 deletions validation-worker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
# Licensed under the MIT License.
# ------------------------------------------------------------

FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
WORKDIR /app
EXPOSE 80

FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build-env
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build-env
WORKDIR /app

COPY . ./
Expand Down

0 comments on commit f1b8394

Please sign in to comment.