From e44b39442af58dacb0e3c70f261bfcd426abb344 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Sun, 13 Oct 2024 22:51:20 +0000 Subject: [PATCH 01/17] fix: WardrobeManager.Presentation/WardrobeManager.Presentation.csproj to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-DOTNET-SYSTEMTEXTJSON-8168848 - https://snyk.io/vuln/SNYK-DOTNET-SYSTEMTEXTJSON-7433719 --- .../WardrobeManager.Presentation.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WardrobeManager.Presentation/WardrobeManager.Presentation.csproj b/WardrobeManager.Presentation/WardrobeManager.Presentation.csproj index bb50ff5..7abb429 100644 --- a/WardrobeManager.Presentation/WardrobeManager.Presentation.csproj +++ b/WardrobeManager.Presentation/WardrobeManager.Presentation.csproj @@ -8,7 +8,7 @@ - + From 9b02e30d49dafc293141adc5cbdab4212e7b71ba Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Sun, 10 Nov 2024 18:50:41 +0000 Subject: [PATCH 02/17] fix: WardrobeManager.Api/WardrobeManager.Api.csproj to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-DOTNET-SYSTEMTEXTJSON-7433719 --- WardrobeManager.Api/WardrobeManager.Api.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WardrobeManager.Api/WardrobeManager.Api.csproj b/WardrobeManager.Api/WardrobeManager.Api.csproj index 3242f61..0cf58de 100644 --- a/WardrobeManager.Api/WardrobeManager.Api.csproj +++ b/WardrobeManager.Api/WardrobeManager.Api.csproj @@ -12,7 +12,7 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive From 8963a59b2cd0e68b05fc49c94cedf851958ee10e Mon Sep 17 00:00:00 2001 From: Musa Ahmed Date: Tue, 12 Nov 2024 21:07:31 -0500 Subject: [PATCH 03/17] Create BuildAndPushApiDockerImage.yml --- .../workflows/BuildAndPushApiDockerImage.yml | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 .github/workflows/BuildAndPushApiDockerImage.yml diff --git a/.github/workflows/BuildAndPushApiDockerImage.yml b/.github/workflows/BuildAndPushApiDockerImage.yml new file mode 100644 index 0000000..ba4e9ed --- /dev/null +++ b/.github/workflows/BuildAndPushApiDockerImage.yml @@ -0,0 +1,61 @@ +# +name: Create and publish a Docker image + +# Configures this workflow to run every time a change is pushed to the branch called `release`. +on: + push: + branches: ['release'] + +# Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds. +env: + REGISTRY: ghcr.io + IMAGE_NAME: ${{ github.repository }}-api + +# There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu. +jobs: + build-and-push-image: + runs-on: ubuntu-latest + # Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job. + permissions: + contents: read + packages: write + attestations: write + id-token: write + # + steps: + - name: Checkout repository + uses: actions/checkout@v4 + # Uses the `docker/login-action` action to log in to the Container registry registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here. + - name: Log in to the Container registry + uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1 + with: + registry: ${{ env.REGISTRY }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + # This step uses [docker/metadata-action](https://github.com/docker/metadata-action#about) to extract tags and labels that will be applied to the specified image. The `id` "meta" allows the output of this step to be referenced in a subsequent step. The `images` value provides the base name for the tags and labels. + - name: Extract metadata (tags, labels) for Docker + id: meta + uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7 + with: + images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + # This step uses the `docker/build-push-action` action to build the image, based on your repository's `Dockerfile`. If the build succeeds, it pushes the image to GitHub Packages. + # It uses the `context` parameter to define the build's context as the set of files located in the specified path. For more information, see "[Usage](https://github.com/docker/build-push-action#usage)" in the README of the `docker/build-push-action` repository. + # It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step. + - name: Build and push Docker image + id: push + uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4 + with: + context: . + file: docker/WardrobeManager.Api/Dockerfile + push: true + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} + + # This step generates an artifact attestation for the image, which is an unforgeable statement about where and how it was built. It increases supply chain security for people who consume the image. For more information, see "[AUTOTITLE](/actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds)." + - name: Generate artifact attestation + uses: actions/attest-build-provenance@v1 + with: + subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}} + subject-digest: ${{ steps.push.outputs.digest }} + push-to-registry: true + From 665a0dc7ca4f7ad9ae7b0194f311a1dceb9486ca Mon Sep 17 00:00:00 2001 From: Musa Ahmed Date: Tue, 12 Nov 2024 21:11:13 -0500 Subject: [PATCH 04/17] Update BuildAndPushApiDockerImage.yml --- .github/workflows/BuildAndPushApiDockerImage.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/BuildAndPushApiDockerImage.yml b/.github/workflows/BuildAndPushApiDockerImage.yml index ba4e9ed..7327754 100644 --- a/.github/workflows/BuildAndPushApiDockerImage.yml +++ b/.github/workflows/BuildAndPushApiDockerImage.yml @@ -4,7 +4,7 @@ name: Create and publish a Docker image # Configures this workflow to run every time a change is pushed to the branch called `release`. on: push: - branches: ['release'] + branches: ["master"] # Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds. env: From dc480dc8cd61281f5a94e34f4389c2fae58757ac Mon Sep 17 00:00:00 2001 From: Musa Ahmed Date: Tue, 12 Nov 2024 22:08:27 -0500 Subject: [PATCH 05/17] Update BuildAndPushApiDockerImage.yml --- .../workflows/BuildAndPushApiDockerImage.yml | 53 +++++++++---------- 1 file changed, 24 insertions(+), 29 deletions(-) diff --git a/.github/workflows/BuildAndPushApiDockerImage.yml b/.github/workflows/BuildAndPushApiDockerImage.yml index 7327754..c14c6d4 100644 --- a/.github/workflows/BuildAndPushApiDockerImage.yml +++ b/.github/workflows/BuildAndPushApiDockerImage.yml @@ -1,61 +1,56 @@ -# -name: Create and publish a Docker image +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +# GitHub recommends pinning actions to a commit SHA. +# To get a newer version, you will need to update the SHA. +# You can also reference a tag or branch, but the action may change without warning. + +name: Publish WardrobeManager.Api Docker image -# Configures this workflow to run every time a change is pushed to the branch called `release`. on: push: branches: ["master"] -# Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds. -env: - REGISTRY: ghcr.io - IMAGE_NAME: ${{ github.repository }}-api - -# There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu. jobs: - build-and-push-image: + push_to_registry: + name: Push Docker image to Docker Hub runs-on: ubuntu-latest - # Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job. permissions: - contents: read packages: write + contents: read attestations: write id-token: write - # steps: - - name: Checkout repository + - name: Check out the repo uses: actions/checkout@v4 - # Uses the `docker/login-action` action to log in to the Container registry registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here. - - name: Log in to the Container registry - uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1 + + - name: Log in to Docker Hub + uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a with: - registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - # This step uses [docker/metadata-action](https://github.com/docker/metadata-action#about) to extract tags and labels that will be applied to the specified image. The `id` "meta" allows the output of this step to be referenced in a subsequent step. The `images` value provides the base name for the tags and labels. + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + - name: Extract metadata (tags, labels) for Docker id: meta uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7 with: - images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - # This step uses the `docker/build-push-action` action to build the image, based on your repository's `Dockerfile`. If the build succeeds, it pushes the image to GitHub Packages. - # It uses the `context` parameter to define the build's context as the set of files located in the specified path. For more information, see "[Usage](https://github.com/docker/build-push-action#usage)" in the README of the `docker/build-push-action` repository. - # It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step. + images: ${{ secrets.DOCKER_USERNAME }}/wardrobe-manager + - name: Build and push Docker image id: push - uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4 + uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671 with: context: . file: docker/WardrobeManager.Api/Dockerfile push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - - # This step generates an artifact attestation for the image, which is an unforgeable statement about where and how it was built. It increases supply chain security for people who consume the image. For more information, see "[AUTOTITLE](/actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds)." + - name: Generate artifact attestation uses: actions/attest-build-provenance@v1 with: subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}} subject-digest: ${{ steps.push.outputs.digest }} push-to-registry: true - From 8a07efe8a3caeb9cdbef5bfab8efc888a7d17bef Mon Sep 17 00:00:00 2001 From: Musa Ahmed Date: Tue, 12 Nov 2024 22:57:36 -0500 Subject: [PATCH 06/17] Update BuildAndPushApiDockerImage.yml --- .github/workflows/BuildAndPushApiDockerImage.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/BuildAndPushApiDockerImage.yml b/.github/workflows/BuildAndPushApiDockerImage.yml index c14c6d4..a995365 100644 --- a/.github/workflows/BuildAndPushApiDockerImage.yml +++ b/.github/workflows/BuildAndPushApiDockerImage.yml @@ -13,6 +13,10 @@ on: push: branches: ["master"] +env: + REGISTRY: ghcr.io + IMAGE_NAME: ${{ github.repository }} + jobs: push_to_registry: name: Push Docker image to Docker Hub @@ -48,9 +52,9 @@ jobs: tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - - name: Generate artifact attestation - uses: actions/attest-build-provenance@v1 - with: - subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}} - subject-digest: ${{ steps.push.outputs.digest }} - push-to-registry: true + # - name: Generate artifact attestation + # uses: actions/attest-build-provenance@v1 + # with: + # subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}} + # subject-digest: ${{ steps.push.outputs.digest }} + # push-to-registry: true From 98bdcb0ca2cae30d8ad18800d9ddd349ef66a742 Mon Sep 17 00:00:00 2001 From: Musa Ahmed Date: Tue, 12 Nov 2024 23:22:46 -0500 Subject: [PATCH 07/17] Update BuildAndPushApiDockerImage.yml --- .github/workflows/BuildAndPushApiDockerImage.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/BuildAndPushApiDockerImage.yml b/.github/workflows/BuildAndPushApiDockerImage.yml index a995365..a9da530 100644 --- a/.github/workflows/BuildAndPushApiDockerImage.yml +++ b/.github/workflows/BuildAndPushApiDockerImage.yml @@ -14,8 +14,8 @@ on: branches: ["master"] env: - REGISTRY: ghcr.io - IMAGE_NAME: ${{ github.repository }} + # REGISTRY: ghcr.io + IMAGE_NAME: ${{ github.repository }}-api jobs: push_to_registry: @@ -40,7 +40,7 @@ jobs: id: meta uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7 with: - images: ${{ secrets.DOCKER_USERNAME }}/wardrobe-manager + images: ${{ secrets.DOCKER_USERNAME }}/${{ env.IMAGE_NAME }} - name: Build and push Docker image id: push From 31dabd28d70c741dd000bc99f2496c4608f9ba34 Mon Sep 17 00:00:00 2001 From: Musa Ahmed Date: Tue, 12 Nov 2024 23:45:22 -0500 Subject: [PATCH 08/17] Update BuildAndPushApiDockerImage.yml --- .github/workflows/BuildAndPushApiDockerImage.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/BuildAndPushApiDockerImage.yml b/.github/workflows/BuildAndPushApiDockerImage.yml index a9da530..2ef8932 100644 --- a/.github/workflows/BuildAndPushApiDockerImage.yml +++ b/.github/workflows/BuildAndPushApiDockerImage.yml @@ -15,7 +15,7 @@ on: env: # REGISTRY: ghcr.io - IMAGE_NAME: ${{ github.repository }}-api + IMAGE_NAME: wardrobemanager-api jobs: push_to_registry: From 74457090b8bc593215fb55c194334e7d63936ad8 Mon Sep 17 00:00:00 2001 From: Musa Ahmed Date: Tue, 12 Nov 2024 23:49:03 -0500 Subject: [PATCH 09/17] Create BuildAndPushPresentationDockerImage.yml --- .../BuildAndPushPresentationDockerImage.yml | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 .github/workflows/BuildAndPushPresentationDockerImage.yml diff --git a/.github/workflows/BuildAndPushPresentationDockerImage.yml b/.github/workflows/BuildAndPushPresentationDockerImage.yml new file mode 100644 index 0000000..b14e1af --- /dev/null +++ b/.github/workflows/BuildAndPushPresentationDockerImage.yml @@ -0,0 +1,60 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +# GitHub recommends pinning actions to a commit SHA. +# To get a newer version, you will need to update the SHA. +# You can also reference a tag or branch, but the action may change without warning. + +name: Publish WardrobeManager.Presentation Docker image + +on: + push: + branches: ["master"] + +env: + # REGISTRY: ghcr.io + IMAGE_NAME: wardrobemanager-presentation + +jobs: + push_to_registry: + name: Push Docker image to Docker Hub + runs-on: ubuntu-latest + permissions: + packages: write + contents: read + attestations: write + id-token: write + steps: + - name: Check out the repo + uses: actions/checkout@v4 + + - name: Log in to Docker Hub + uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: Extract metadata (tags, labels) for Docker + id: meta + uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7 + with: + images: ${{ secrets.DOCKER_USERNAME }}/${{ env.IMAGE_NAME }} + + - name: Build and push Docker image + id: push + uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671 + with: + context: . + file: docker/WardrobeManager.Presentation/Dockerfile + push: true + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} + + # - name: Generate artifact attestation + # uses: actions/attest-build-provenance@v1 + # with: + # subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}} + # subject-digest: ${{ steps.push.outputs.digest }} + # push-to-registry: true From aa9bdf9aceec13b331378cdad940bce8867351fa Mon Sep 17 00:00:00 2001 From: Musa Ahmed Date: Wed, 13 Nov 2024 16:28:48 -0500 Subject: [PATCH 10/17] Update BuildAndPushPresentationDockerImage.yml --- .../BuildAndPushPresentationDockerImage.yml | 27 ++----------------- 1 file changed, 2 insertions(+), 25 deletions(-) diff --git a/.github/workflows/BuildAndPushPresentationDockerImage.yml b/.github/workflows/BuildAndPushPresentationDockerImage.yml index b14e1af..5a4368b 100644 --- a/.github/workflows/BuildAndPushPresentationDockerImage.yml +++ b/.github/workflows/BuildAndPushPresentationDockerImage.yml @@ -1,20 +1,10 @@ -# This workflow uses actions that are not certified by GitHub. -# They are provided by a third-party and are governed by -# separate terms of service, privacy policy, and support -# documentation. - -# GitHub recommends pinning actions to a commit SHA. -# To get a newer version, you will need to update the SHA. -# You can also reference a tag or branch, but the action may change without warning. - name: Publish WardrobeManager.Presentation Docker image on: - push: + release: branches: ["master"] env: - # REGISTRY: ghcr.io IMAGE_NAME: wardrobemanager-presentation jobs: @@ -36,12 +26,6 @@ jobs: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - - name: Extract metadata (tags, labels) for Docker - id: meta - uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7 - with: - images: ${{ secrets.DOCKER_USERNAME }}/${{ env.IMAGE_NAME }} - - name: Build and push Docker image id: push uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671 @@ -49,12 +33,5 @@ jobs: context: . file: docker/WardrobeManager.Presentation/Dockerfile push: true - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} + tags: ${{ github.event.release.tag_name }} - # - name: Generate artifact attestation - # uses: actions/attest-build-provenance@v1 - # with: - # subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}} - # subject-digest: ${{ steps.push.outputs.digest }} - # push-to-registry: true From 683df744da03e965a3c7e5e4e6763d27d36d9e50 Mon Sep 17 00:00:00 2001 From: Musa Ahmed Date: Wed, 13 Nov 2024 16:30:59 -0500 Subject: [PATCH 11/17] Update BuildAndPushApiDockerImage.yml --- .../workflows/BuildAndPushApiDockerImage.yml | 28 ++----------------- 1 file changed, 2 insertions(+), 26 deletions(-) diff --git a/.github/workflows/BuildAndPushApiDockerImage.yml b/.github/workflows/BuildAndPushApiDockerImage.yml index 2ef8932..0d477a4 100644 --- a/.github/workflows/BuildAndPushApiDockerImage.yml +++ b/.github/workflows/BuildAndPushApiDockerImage.yml @@ -1,20 +1,10 @@ -# This workflow uses actions that are not certified by GitHub. -# They are provided by a third-party and are governed by -# separate terms of service, privacy policy, and support -# documentation. - -# GitHub recommends pinning actions to a commit SHA. -# To get a newer version, you will need to update the SHA. -# You can also reference a tag or branch, but the action may change without warning. - name: Publish WardrobeManager.Api Docker image on: - push: + release: branches: ["master"] env: - # REGISTRY: ghcr.io IMAGE_NAME: wardrobemanager-api jobs: @@ -36,12 +26,6 @@ jobs: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - - name: Extract metadata (tags, labels) for Docker - id: meta - uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7 - with: - images: ${{ secrets.DOCKER_USERNAME }}/${{ env.IMAGE_NAME }} - - name: Build and push Docker image id: push uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671 @@ -49,12 +33,4 @@ jobs: context: . file: docker/WardrobeManager.Api/Dockerfile push: true - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} - - # - name: Generate artifact attestation - # uses: actions/attest-build-provenance@v1 - # with: - # subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}} - # subject-digest: ${{ steps.push.outputs.digest }} - # push-to-registry: true + tags: ${{ github.event.release.tag_name }} From ed3a25f96ebd89299776e9353859fce7fccae757 Mon Sep 17 00:00:00 2001 From: Musa Ahmed Date: Wed, 13 Nov 2024 16:44:46 -0500 Subject: [PATCH 12/17] Update BuildAndPushApiDockerImage.yml --- .github/workflows/BuildAndPushApiDockerImage.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/BuildAndPushApiDockerImage.yml b/.github/workflows/BuildAndPushApiDockerImage.yml index 0d477a4..437b266 100644 --- a/.github/workflows/BuildAndPushApiDockerImage.yml +++ b/.github/workflows/BuildAndPushApiDockerImage.yml @@ -34,3 +34,4 @@ jobs: file: docker/WardrobeManager.Api/Dockerfile push: true tags: ${{ github.event.release.tag_name }} + tags: ${{ secrets.DOCKER_USERNAME }}/${{ env.IMAGE_NAME }}:${{ github.event.release.tag_name }} , ${{ secrets.DOCKER_USERNAME }}/${{ env.IMAGE_NAME }}:latest From 06561d2222789b01440305749a64a2f645c7830e Mon Sep 17 00:00:00 2001 From: Musa Ahmed Date: Wed, 13 Nov 2024 16:46:02 -0500 Subject: [PATCH 13/17] Update BuildAndPushApiDockerImage.yml --- .github/workflows/BuildAndPushApiDockerImage.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/BuildAndPushApiDockerImage.yml b/.github/workflows/BuildAndPushApiDockerImage.yml index 437b266..72cab27 100644 --- a/.github/workflows/BuildAndPushApiDockerImage.yml +++ b/.github/workflows/BuildAndPushApiDockerImage.yml @@ -33,5 +33,4 @@ jobs: context: . file: docker/WardrobeManager.Api/Dockerfile push: true - tags: ${{ github.event.release.tag_name }} tags: ${{ secrets.DOCKER_USERNAME }}/${{ env.IMAGE_NAME }}:${{ github.event.release.tag_name }} , ${{ secrets.DOCKER_USERNAME }}/${{ env.IMAGE_NAME }}:latest From 053d52cd7cf9264d102f6cc26c4832d60c4bc560 Mon Sep 17 00:00:00 2001 From: Musa Ahmed Date: Wed, 13 Nov 2024 16:49:53 -0500 Subject: [PATCH 14/17] Update WardrobeManager.Presentation.csproj --- .../WardrobeManager.Presentation.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WardrobeManager.Presentation/WardrobeManager.Presentation.csproj b/WardrobeManager.Presentation/WardrobeManager.Presentation.csproj index 5a1e0e5..a8b7952 100644 --- a/WardrobeManager.Presentation/WardrobeManager.Presentation.csproj +++ b/WardrobeManager.Presentation/WardrobeManager.Presentation.csproj @@ -7,7 +7,7 @@ - + From 0df30b4e8cc19502f348deda4169cc6f32f3d265 Mon Sep 17 00:00:00 2001 From: Musa Ahmed Date: Wed, 13 Nov 2024 16:50:15 -0500 Subject: [PATCH 15/17] Update WardrobeManager.Api.csproj --- WardrobeManager.Api/WardrobeManager.Api.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WardrobeManager.Api/WardrobeManager.Api.csproj b/WardrobeManager.Api/WardrobeManager.Api.csproj index 8ca1b8c..b4db907 100644 --- a/WardrobeManager.Api/WardrobeManager.Api.csproj +++ b/WardrobeManager.Api/WardrobeManager.Api.csproj @@ -13,7 +13,7 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive From d9e7c98c4445f6ac28e7fee1e7b2e93d35e8a2ac Mon Sep 17 00:00:00 2001 From: Musa Ahmed Date: Wed, 13 Nov 2024 16:55:02 -0500 Subject: [PATCH 16/17] Update BuildAndPushPresentationDockerImage.yml --- .github/workflows/BuildAndPushPresentationDockerImage.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/BuildAndPushPresentationDockerImage.yml b/.github/workflows/BuildAndPushPresentationDockerImage.yml index 5a4368b..8fc66cb 100644 --- a/.github/workflows/BuildAndPushPresentationDockerImage.yml +++ b/.github/workflows/BuildAndPushPresentationDockerImage.yml @@ -33,5 +33,4 @@ jobs: context: . file: docker/WardrobeManager.Presentation/Dockerfile push: true - tags: ${{ github.event.release.tag_name }} - + tags: ${{ secrets.DOCKER_USERNAME }}/${{ env.IMAGE_NAME }}:${{ github.event.release.tag_name }} , ${{ secrets.DOCKER_USERNAME }}/${{ env.IMAGE_NAME }}:latest From 48d2056e334b660de527129dd9ab8cdd0b3a5cb5 Mon Sep 17 00:00:00 2001 From: Musa Ahmed Date: Wed, 13 Nov 2024 16:58:45 -0500 Subject: [PATCH 17/17] Delete .github/workflows/docker-image.yml --- .github/workflows/docker-image.yml | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 .github/workflows/docker-image.yml diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml deleted file mode 100644 index 25985f5..0000000 --- a/.github/workflows/docker-image.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: Docker Image CI - -on: - release: - branches: [ "master" ] - -jobs: - - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - name: Build the WardrobeManager Api Docker Image - run: docker build . --file docker/WardrobeManager.Api/Dockerfile --tag wardrobe-manager-api:$(date +%s) - - - name: Build WardrobeManager Presentation Docker Image - run: docker build . --file docker/WardrobeManager.Presentation/Dockerfile --tag wardrobe-manager-presentation:$(date +%s) -