-
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.
Merge pull request #4 from tunacinsoy/dev
Dev To Prod -
- Loading branch information
Showing
35 changed files
with
3,568 additions
and
207 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
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
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,24 +1,29 @@ | ||
name: Dev Env Continuous Deployment Workflow | ||
on: | ||
push: | ||
branches: [ dev ] | ||
jobs: | ||
create-environment-and-deploy-app: | ||
name: Create Environment and Deploy the Application | ||
uses: ./.github/workflows/create-cluster.yml | ||
secrets: inherit | ||
run-tests: | ||
name: Run Integration Tests | ||
needs: [create-environment-and-deploy-app] | ||
uses: ./.github/workflows/run-tests.yml | ||
secrets: inherit | ||
binary-auth: | ||
name: Attest Images | ||
needs: [run-tests] | ||
uses: ./.github/workflows/attest-images.yml | ||
secrets: inherit | ||
raise-pull-request: | ||
name: Raise PR to prod branch | ||
needs: [binary-auth] | ||
uses: ./.github/workflows/raise-pr.yml | ||
secrets: inherit | ||
# name: Dev Env Continuous Deployment Workflow | ||
# on: | ||
# push: | ||
# branches: [ dev ] | ||
# jobs: | ||
# create-environment-and-deploy-app: | ||
# name: Create Environment and Deploy the Application | ||
# uses: ./.github/workflows/create-cluster.yml | ||
# secrets: inherit | ||
# run-tests: | ||
# name: Run Integration Tests | ||
# needs: [create-environment-and-deploy-app] | ||
# uses: ./.github/workflows/run-tests.yml | ||
# secrets: inherit | ||
# format-images: | ||
# name: Format Images into SHA256 Digest Format | ||
# needs: [run-tests] | ||
# uses: ./.github/workflows/format-images.yml | ||
# secrets: inherit | ||
# binary-auth: | ||
# name: Attest Images | ||
# needs: [format-images] | ||
# uses: ./.github/workflows/attest-images.yml | ||
# secrets: inherit | ||
# raise-pull-request: | ||
# name: Raise PR to Prod Branch | ||
# needs: [binary-auth] | ||
# uses: ./.github/workflows/raise-pr.yml | ||
# secrets: inherit |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: Format Images into SHA256 Digest | ||
on: [workflow_call] | ||
jobs: | ||
format-images: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v4 | ||
- name: Login to Docker Hub | ||
run: docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_PASSWORD }} | ||
- name: Run Bash Script | ||
working-directory: ./scripts | ||
run: | | ||
chmod +x convert-images-into-sha256-format.sh | ||
./convert-images-into-sha256-format.sh |
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,14 +1,14 @@ | ||
name: Prod Continuous Deployment Workflow | ||
on: | ||
push: | ||
branches: [ prod ] | ||
jobs: | ||
create-environment-and-deploy-app: | ||
name: Create Environment and Deploy App | ||
uses: ./.github/workflows/create-cluster.yml | ||
secrets: inherit | ||
run-tests: | ||
name: Run Integration Tests | ||
needs: [create-environment-and-deploy-app] | ||
uses: ./.github/workflows/run-tests.yml | ||
secrets: inherit | ||
# name: Prod Continuous Deployment Workflow | ||
# on: | ||
# push: | ||
# branches: [ prod ] | ||
# jobs: | ||
# create-environment-and-deploy-app: | ||
# name: Create Environment and Deploy App | ||
# uses: ./.github/workflows/create-cluster.yml | ||
# secrets: inherit | ||
# run-tests: | ||
# name: Run Integration Tests | ||
# needs: [create-environment-and-deploy-app] | ||
# uses: ./.github/workflows/run-tests.yml | ||
# secrets: inherit |
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
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
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -0,0 +1,65 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: istio-base | ||
namespace: argo | ||
spec: | ||
project: default | ||
source: | ||
chart: base | ||
repoURL: https://istio-release.storage.googleapis.com/charts | ||
targetRevision: 1.23.0 | ||
helm: | ||
releaseName: istio-base | ||
destination: | ||
server: "https://kubernetes.default.svc" | ||
namespace: istio-system | ||
syncPolicy: | ||
syncOptions: | ||
- CreateNamespace=true | ||
automated: | ||
selfHeal: true | ||
--- | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: istiod | ||
namespace: argo | ||
spec: | ||
project: default | ||
source: | ||
chart: istiod | ||
repoURL: https://istio-release.storage.googleapis.com/charts | ||
targetRevision: 1.23.0 | ||
helm: | ||
releaseName: istiod | ||
destination: | ||
server: "https://kubernetes.default.svc" | ||
namespace: istio-system | ||
syncPolicy: | ||
syncOptions: | ||
- CreateNamespace=true | ||
automated: | ||
selfHeal: true | ||
--- | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: istio-ingress-helm | ||
namespace: argo | ||
spec: | ||
project: default | ||
source: | ||
chart: gateway | ||
repoURL: https://istio-release.storage.googleapis.com/charts | ||
targetRevision: 1.23.0 | ||
helm: | ||
releaseName: istio-ingress | ||
destination: | ||
server: "https://kubernetes.default.svc" | ||
namespace: istio-ingress | ||
syncPolicy: | ||
syncOptions: | ||
- CreateNamespace=true | ||
automated: | ||
selfHeal: true |
Oops, something went wrong.