Skip to content

Commit

Permalink
Revert "Test fixing github action build image not correct"
Browse files Browse the repository at this point in the history
This reverts commit 78f2ad4.
  • Loading branch information
Corgam committed Jun 9, 2024
1 parent 78f2ad4 commit a11f5fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 24 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/deploy_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ jobs:
${{ steps.meta.outputs.bake-file }}
push: true
env:
REGISTRY: ${{ env.REGISTRY }}
IMAGE_NAME: ${{ env.IMAGE_NAME }}
STAGE: ${{ env.STAGE }}
MONGO_INITDB_ROOT_USERNAME: ${{ secrets.MONGO_INITDB_ROOT_USERNAME }}
MONGO_INITDB_ROOT_PASSWORD: ${{ secrets.MONGO_INITDB_ROOT_PASSWORD }}
Expand Down
24 changes: 2 additions & 22 deletions docker-bake.hcl
Original file line number Diff line number Diff line change
@@ -1,61 +1,41 @@
group "default" {
targets = [
"frontend",
"api-gateway",
"api-composer",
"datapipeline",
"sql-database",
"metadata-database"
]
targets = ["frontend", "api-gateway", "api-composer", "datapipeline", "sql-database", "metadata-database"]
}

target "docker-metadata-action" {
labels = {
"org.opencontainers.image.created" = "${{ steps.meta.outputs.created }}"
"org.opencontainers.image.version" = "${{ steps.meta.outputs.version }}"
"org.opencontainers.image.revision" = "${{ steps.meta.outputs.revision }}"
"org.opencontainers.image.source" = "${{ steps.meta.outputs.source }}"
}
}
target "docker-metadata-action" {}

target "frontend" {
inherits = ["docker-metadata-action"]
context = "./frontend"
dockerfile = "Dockerfile"
tags = ["${REGISTRY}/${IMAGE_NAME}-frontend:${STAGE}"]
}

target "api-gateway" {
inherits = ["docker-metadata-action"]
context = "./backend/api-gateway"
dockerfile = "Dockerfile"
tags = ["${REGISTRY}/${IMAGE_NAME}-api-gateway:${STAGE}"]
}

target "api-composer" {
inherits = ["docker-metadata-action"]
context = "./backend/src/BIE.Core"
dockerfile = "Dockerfile"
tags = ["${REGISTRY}/${IMAGE_NAME}-api-composer:${STAGE}"]
}

target "datapipeline" {
inherits = ["docker-metadata-action"]
context = "./backend/src/BIE.DataPipeline"
dockerfile = "Dockerfile"
tags = ["${REGISTRY}/${IMAGE_NAME}-datapipeline:${STAGE}"]
}

target "sql-database" {
inherits = ["docker-metadata-action"]
context = "./backend/sql-database"
dockerfile = "Dockerfile"
tags = ["${REGISTRY}/${IMAGE_NAME}-sql-database:${STAGE}"]
}

target "metadata-database" {
inherits = ["docker-metadata-action"]
context = "./backend/metadata-database"
dockerfile = "Dockerfile"
tags = ["${REGISTRY}/${IMAGE_NAME}-metadata-database:${STAGE}"]
}

0 comments on commit a11f5fc

Please sign in to comment.