-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add protection against non-existing docker images with data sources
- Loading branch information
1 parent
fb4d50e
commit 1b5434f
Showing
2 changed files
with
54 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,71 @@ | ||
resource "docker_image" "plane_frontend" { | ||
data "docker_registry_image" "plane_frontend" { | ||
name = "makeplane/plane-frontend:v0.22-dev" | ||
} | ||
|
||
resource "docker_image" "plane_space" { | ||
resource "docker_image" "plane_frontend" { | ||
name = data.docker_registry_image.plane_frontend.name | ||
pull_triggers = [data.docker_registry_image.plane_frontend.sha256_digest] | ||
} | ||
|
||
data "docker_registry_image" "plane_space" { | ||
name = "makeplane/plane-space:v0.22-dev" | ||
} | ||
|
||
resource "docker_image" "plane_admin" { | ||
resource "docker_image" "plane_space" { | ||
name = data.docker_registry_image.plane_space.name | ||
pull_triggers = [data.docker_registry_image.plane_space.sha256_digest] | ||
} | ||
|
||
data "docker_registry_image" "plane_admin" { | ||
name = "makeplane/plane-admin:v0.22-dev" | ||
} | ||
|
||
resource "docker_image" "plane_backend" { | ||
resource "docker_image" "plane_admin" { | ||
name = data.docker_registry_image.plane_admin.name | ||
pull_triggers = [data.docker_registry_image.plane_admin.sha256_digest] | ||
} | ||
|
||
data "docker_registry_image" "plane_backend" { | ||
name = "makeplane/plane-backend:v0.22-dev" | ||
} | ||
|
||
resource "docker_image" "plane_proxy" { | ||
resource "docker_image" "plane_backend" { | ||
name = data.docker_registry_image.plane_backend.name | ||
pull_triggers = [data.docker_registry_image.plane_backend.sha256_digest] | ||
} | ||
|
||
data "docker_registry_image" "plane_proxy" { | ||
name = "makeplane/plane-proxy:v0.22-dev" | ||
} | ||
|
||
resource "docker_image" "postgres" { | ||
resource "docker_image" "plane_proxy" { | ||
name = data.docker_registry_image.plane_proxy.name | ||
pull_triggers = [data.docker_registry_image.plane_proxy.sha256_digest] | ||
} | ||
|
||
data "docker_registry_image" "postgres" { | ||
name = "postgres:15.7-alpine" | ||
} | ||
|
||
resource "docker_image" "valkey" { | ||
resource "docker_image" "postgres" { | ||
name = data.docker_registry_image.postgres.name | ||
pull_triggers = [data.docker_registry_image.postgres.sha256_digest] | ||
} | ||
|
||
data "docker_registry_image" "valkey" { | ||
name = "valkey/valkey:7.2.5-alpine" | ||
} | ||
|
||
resource "docker_image" "minio" { | ||
resource "docker_image" "valkey" { | ||
name = data.docker_registry_image.valkey.name | ||
pull_triggers = [data.docker_registry_image.valkey.sha256_digest] | ||
} | ||
|
||
data "docker_registry_image" "minio" { | ||
name = "minio/minio:RELEASE.2024-07-10T18-41-49Z" | ||
} | ||
|
||
resource "docker_image" "minio" { | ||
name = data.docker_registry_image.minio.name | ||
pull_triggers = [data.docker_registry_image.minio.sha256_digest] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters