Skip to content
This repository has been archived by the owner on Dec 13, 2024. It is now read-only.

Commit

Permalink
Merge pull request #4 from co-cddo/refactor-zendesk-backup
Browse files Browse the repository at this point in the history
Refactor zendesk backup
  • Loading branch information
jonodrew authored May 1, 2024
2 parents d127c99 + e41979a commit c588769
Show file tree
Hide file tree
Showing 30 changed files with 383 additions and 179 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches: [ "main" ]
paths:
- lambda/crawler-govuk-reference-content/**
- lambda_/crawler-govuk-reference-content/**
- .github/workflows/lambda_crawler-govuk-reference-content_deploy.yml
workflow_dispatch:
env:
Expand Down Expand Up @@ -48,7 +48,7 @@ jobs:
echo "github.ref: ${{ github.ref }}"
ls -lah
bash build.sh
working-directory: lambda/crawler-govuk-reference-content/
working-directory: lambda_/crawler-govuk-reference-content/

- name: configure aws credentials
uses: aws-actions/configure-aws-credentials@v2
Expand All @@ -61,17 +61,17 @@ jobs:
run: |
aws sts get-caller-identity
ls -lah
working-directory: lambda/crawler-govuk-reference-content/
working-directory: lambda_/crawler-govuk-reference-content/

# Initialize a new or existing Terraform working directory by creating initial files, loading any remote state, downloading modules, etc.
- name: Terraform Init
run: terraform init
working-directory: lambda/crawler-govuk-reference-content/
working-directory: lambda_/crawler-govuk-reference-content/

# Checks that all Terraform configuration files adhere to a canonical format
- name: Terraform Format
run: terraform fmt -check
working-directory: lambda/crawler-govuk-reference-content/
working-directory: lambda_/crawler-govuk-reference-content/

# Generates an execution plan for Terraform
- name: Terraform Apply
Expand All @@ -83,4 +83,4 @@ jobs:
-var="production_iam_role=${{ secrets.PRODUCTION_IAM_ROLE }}"
env:
TERRAFORM_WORKSPACE: ${{ matrix.environment }}
working-directory: lambda/crawler-govuk-reference-content/
working-directory: lambda_/crawler-govuk-reference-content/
8 changes: 4 additions & 4 deletions .github/workflows/lambda_email-forwarder_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches: [ main ]
paths:
- lambda/email-forwarder/**
- lambda_/email-forwarder/**
workflow_dispatch:

permissions:
Expand Down Expand Up @@ -52,12 +52,12 @@ jobs:
# Initialize a new or existing Terraform working directory by creating initial files, loading any remote state, downloading modules, etc.
- name: Terraform Init
run: terraform init
working-directory: lambda/email-forwarder/
working-directory: lambda_/email-forwarder/

# Checks that all Terraform configuration files adhere to a canonical format
- name: Terraform Format
run: terraform fmt -check
working-directory: lambda/email-forwarder/
working-directory: lambda_/email-forwarder/

# Generates an execution plan for Terraform
- name: Terraform Apply
Expand All @@ -68,4 +68,4 @@ jobs:
-var="production_iam_role=${{ secrets.PRODUCTION_IAM_ROLE }}"
env:
TF_WORKSPACE: ${{ matrix.environment }}
working-directory: lambda/email-forwarder/
working-directory: lambda_/email-forwarder/
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches: [ main ]
paths:
- lambda/hackerone-zendesk-integration/**
- lambda_/hackerone-zendesk-integration/**
workflow_dispatch:

permissions:
Expand Down Expand Up @@ -42,7 +42,7 @@ jobs:
run: |
ls -lah
bash build.sh
working-directory: lambda/hackerone-zendesk-integration/
working-directory: lambda_/hackerone-zendesk-integration/

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v2
Expand All @@ -58,12 +58,12 @@ jobs:
# Initialize a new or existing Terraform working directory by creating initial files, loading any remote state, downloading modules, etc.
- name: Terraform Init
run: terraform init
working-directory: lambda/hackerone-zendesk-integration/
working-directory: lambda_/hackerone-zendesk-integration/

# Checks that all Terraform configuration files adhere to a canonical format
- name: Terraform Format
run: terraform fmt -check
working-directory: lambda/hackerone-zendesk-integration/
working-directory: lambda_/hackerone-zendesk-integration/

# Generates an execution plan for Terraform
- name: Terraform Apply
Expand All @@ -74,4 +74,4 @@ jobs:
-var="production_iam_role=${{ secrets.PRODUCTION_IAM_ROLE }}"
env:
TF_WORKSPACE: ${{ matrix.environment }}
working-directory: lambda/hackerone-zendesk-integration/
working-directory: lambda_/hackerone-zendesk-integration/
10 changes: 5 additions & 5 deletions .github/workflows/lambda_zendesk-backup_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches: [ main ]
paths:
- lambda/zendesk-backup/**
- lambda_/zendesk_backup/**
workflow_dispatch:

permissions:
Expand Down Expand Up @@ -42,7 +42,7 @@ jobs:
run: |
ls -lah
bash build.sh
working-directory: lambda/zendesk-backup/
working-directory: lambda_/zendesk_backup/

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v2
Expand All @@ -58,12 +58,12 @@ jobs:
# Initialize a new or existing Terraform working directory by creating initial files, loading any remote state, downloading modules, etc.
- name: Terraform Init
run: terraform init
working-directory: lambda/zendesk-backup/
working-directory: lambda_/zendesk_backup/

# Checks that all Terraform configuration files adhere to a canonical format
- name: Terraform Format
run: terraform fmt -check
working-directory: lambda/zendesk-backup/
working-directory: lambda_/zendesk_backup/

# Generates an execution plan for Terraform
- name: Terraform Apply
Expand All @@ -74,4 +74,4 @@ jobs:
-var="production_iam_role=${{ secrets.PRODUCTION_IAM_ROLE }}"
env:
TF_WORKSPACE: ${{ matrix.environment }}
working-directory: lambda/zendesk-backup/
working-directory: lambda_/zendesk_backup/
159 changes: 0 additions & 159 deletions lambda/zendesk-backup/main.py

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit c588769

Please sign in to comment.