diff --git a/deploy/argocd/stage/application.yaml b/deploy/argocd/stage/application.yaml new file mode 100644 index 0000000..fd3ced6 --- /dev/null +++ b/deploy/argocd/stage/application.yaml @@ -0,0 +1,18 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: aevolution-stage + namespace: argocd +spec: + project: aevolution-stage + source: + repoURL: https://git.aeternalisgames.com/dingo/AEvolution.git + targetRevision: main + path: deploy/kubernetes/stage + destination: + server: https://kubernetes.default.svc + namespace: evolution-stage + syncPolicy: + syncOptions: + - FailOnSharedResource=true + - PruneLast=true \ No newline at end of file diff --git a/deploy/kubernetes/dev/kustomization.yaml b/deploy/kubernetes/dev/kustomization.yaml index a32b1c8..7be194c 100644 --- a/deploy/kubernetes/dev/kustomization.yaml +++ b/deploy/kubernetes/dev/kustomization.yaml @@ -5,6 +5,7 @@ resources: - serviceaccount.yaml - networkpolicy.yaml - job.yaml + - ../stores/dev images: - name: evo-sim newName: registry.aeternalisgames.com/aeternalis/aevolution diff --git a/deploy/kubernetes/stage/kustomization.yaml b/deploy/kubernetes/stage/kustomization.yaml new file mode 100644 index 0000000..21187d9 --- /dev/null +++ b/deploy/kubernetes/stage/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: evolution-stage +resources: + - ../stores/stage \ No newline at end of file diff --git a/deploy/kubernetes/stores/dev/kustomization.yaml b/deploy/kubernetes/stores/dev/kustomization.yaml index e609c6a..0532486 100644 --- a/deploy/kubernetes/stores/dev/kustomization.yaml +++ b/deploy/kubernetes/stores/dev/kustomization.yaml @@ -1,6 +1,5 @@ -# Store Jobs for evolution-dev. Values still to supply before this is included in -# the dev workload path: the published registry digests (from the CI Publish -# step's "Digest:" line) and the dev database's NOLOGIN runtime group role. +# Store Jobs for evolution-dev using immutable published images and the restricted +# dev runtime group role. apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization namespace: evolution-dev @@ -9,10 +8,10 @@ resources: images: - name: aevolution-postgres-tools newName: registry.aeternalisgames.com/aeternalis/aevolution-postgres-tools - digest: sha256:REPLACE_PUBLISHED_TOOLS_DIGEST + digest: sha256:9abb06ef00adcb45f4992709f254bdad60c51293ce6f41dea35250b471fc5792 - name: aevolution-server newName: registry.aeternalisgames.com/aeternalis/aevolution-server - digest: sha256:REPLACE_PUBLISHED_SERVER_DIGEST + digest: sha256:661e433ef0cf4fcb619f1e2ed623297ca20ade896aa16d29e67f47e6ccfa2075 patches: - target: kind: Job @@ -20,4 +19,4 @@ patches: patch: |- - op: replace path: /spec/template/spec/containers/0/env/3/value - value: REPLACE_DEV_RUNTIME_GROUP_ROLE + value: aevolution_runtime diff --git a/deploy/kubernetes/stores/stage/kustomization.yaml b/deploy/kubernetes/stores/stage/kustomization.yaml index 3fbcfdb..14e59ce 100644 --- a/deploy/kubernetes/stores/stage/kustomization.yaml +++ b/deploy/kubernetes/stores/stage/kustomization.yaml @@ -1,6 +1,5 @@ -# Store Jobs for evolution-stage. Values still to supply before this is included in -# the stage workload path: the published registry digests (from the CI Publish -# step's "Digest:" line) and the stage database's NOLOGIN runtime group role. +# Store Jobs for evolution-stage using immutable published images and the restricted +# stage runtime group role. apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization namespace: evolution-stage @@ -9,10 +8,10 @@ resources: images: - name: aevolution-postgres-tools newName: registry.aeternalisgames.com/aeternalis/aevolution-postgres-tools - digest: sha256:REPLACE_PUBLISHED_TOOLS_DIGEST + digest: sha256:9abb06ef00adcb45f4992709f254bdad60c51293ce6f41dea35250b471fc5792 - name: aevolution-server newName: registry.aeternalisgames.com/aeternalis/aevolution-server - digest: sha256:REPLACE_PUBLISHED_SERVER_DIGEST + digest: sha256:661e433ef0cf4fcb619f1e2ed623297ca20ade896aa16d29e67f47e6ccfa2075 patches: - target: kind: Job @@ -20,4 +19,4 @@ patches: patch: |- - op: replace path: /spec/template/spec/containers/0/env/3/value - value: REPLACE_STAGE_RUNTIME_GROUP_ROLE + value: aevolution_stage_runtime