Skip to content

Instantly share code, notes, and snippets.

View Iheanacho-ai's full-sized avatar
💭
Available

Iheanacho Amarachi Sharon Iheanacho-ai

💭
Available
View GitHub Profile
backend-image:
needs: backend-security
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
actions: read
id-token: write
steps:
- name: Checkout backend code
frontend-image:
needs: frontend-security
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
actions: read
id-token: write
steps:
- name: Checkout the application code
name: Build and test the code and push it to ECR
on:
pull_request:
branches: "main"
push:
branches: "main"
jobs:
frontend-test:
name: Terraform Jumphost Configuration
on:
push:
branches:
- main
paths:
- terraform/**
pull_request:
#!/bin/bash
# For Ubuntu 22.04
set -e # Exit script immediately on first error.
# Log all output to file
exec >> /var/log/init-script.log 2>&1
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 5.0"
}
}
backend "s3" {
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "demo-chart.fullname" . }}
labels:
{{- include "demo-chart.labels" . | nindent 4 }}
spec:
{{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicaCount }}
{{- end }}
apiVersion: apps/v1
kind: Deployment
metadata:
name: todo-list
labels:
app: todo-list
spec:
replicas: 2
selector:
matchLabels:
apiVersion: apps/v1
kind: Deployment
metadata:
name: todo-mongodb
labels:
app: todo-mongodb
spec:
replicas: 1
selector:
matchLabels:
apiVersion: apps/v1
kind: Deployment
metadata:
name: todo-mongodb
labels:
app: todo-mongodb
spec:
replicas: 1
selector:
matchLabels: