diff --git a/.github/workflows/deploymentCD.yaml b/.github/workflows/deploymentCD.yaml index e97059a..36425df 100644 --- a/.github/workflows/deploymentCD.yaml +++ b/.github/workflows/deploymentCD.yaml @@ -59,8 +59,8 @@ jobs: # run: | # kubectl apply -f resources.yaml - # notifications: - # needs: deploy - # uses: ./.github/workflows/notifyCD.yaml - # secrets: - # SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + notifications: + needs: deploy + uses: ./.github/workflows/notifyCD.yaml + secrets: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} diff --git a/.github/workflows/scan-image.yaml b/.github/workflows/scan-image.yaml index e4477df..67f1953 100644 --- a/.github/workflows/scan-image.yaml +++ b/.github/workflows/scan-image.yaml @@ -40,7 +40,7 @@ jobs: ' scan-results.json > vulnerability-report.md - name: Upload vulnerability report - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: vulnerability-report path: vulnerability-report.md diff --git a/resources.yaml b/resources.yaml deleted file mode 100644 index c4edba2..0000000 --- a/resources.yaml +++ /dev/null @@ -1,44 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: user-service - labels: - app: user-service -spec: - replicas: 1 - selector: - matchLabels: - app: user-service - template: - metadata: - labels: - app: user-service - spec: - containers: - - name: user-service - image: datuits/devops-user-service:latest - ports: - - containerPort: 8081 - env: - - name: SPRING_DATA_MONGODB_URI - value: mongodb://user-mongo-service:27017/user-service - resources: - requests: - memory: "32Mi" - cpu: "0.2" - limits: - memory: "64Mi" - cpu: "0.4" ---- -apiVersion: v1 -kind: Service -metadata: - name: user-service -spec: - selector: - app: user-service - ports: - - protocol: TCP - port: 8081 - targetPort: 8081 - type: NodePort \ No newline at end of file