Skip to content

Commit

Permalink
moving s3 code
Browse files Browse the repository at this point in the history
  • Loading branch information
r3dact3d committed May 3, 2024
1 parent 4a16d81 commit 66eb648
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/gitops.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,17 @@ jobs:
export KUBECONFIG=$GITHUB_WORKSPACE/kubeconfig
oc apply -f https://raw.githubusercontent.com/r3dact3d/gitops/main/gitops-cluster/gitops-operator.yaml
sleep 300
oc project openshift-gitops
oc adm policy add-cluster-role-to-user cluster-admin -z openshift-gitops-argocd-application-controller
oc create -f https://raw.githubusercontent.com/r3dact3d/gitops/main/gitops-cluster/day2-app.yaml
oc create -f https://raw.githubusercontent.com/r3dact3d/gitops/main/gitops-cluster/appset-app.yaml
oc create namespace aap
oc create secret generic s3-secret --namespace aap \
--from-literal=s3-access-key-id=${{secrets.AWS_ACCESS_KEY_ID}} \
--from-literal=s3-secret-access-key=${{secrets.AWS_SECRET_ACCESS_KEY}} \
--from-literal=s3-bucket-name=${{secrets.OCP_CLUSTER_NAME}}-aap-ha-db-bucket \
--from-literal=s3-region=${{secrets.AWS_REGION}} | oc apply -f
sleep 300
oc project openshift-gitops
oc adm policy add-cluster-role-to-user cluster-admin -z openshift-gitops-argocd-application-controller
oc create -f https://raw.githubusercontent.com/r3dact3d/gitops/main/gitops-cluster/day2-app.yaml
oc create -f https://raw.githubusercontent.com/r3dact3d/gitops/main/gitops-cluster/appset-app.yaml
#oc create -f https://raw.githubusercontent.com/r3dact3d/gitops/main/gitops-cluster/cluster-onboarding-app.yaml

0 comments on commit 66eb648

Please sign in to comment.