Skip to content

Commit

Permalink
spike/config per environment
Browse files Browse the repository at this point in the history
  • Loading branch information
feba-rajan committed Nov 18, 2024
1 parent d169ee5 commit e4cf2d1
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/upload_to_S3.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Upload to S3
on:
push:
branches:
- spike/config-per-environment

jobs:
upload_to_S3:
runs-on: ubuntu-latest
enviroment: development

steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1-node16
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: eu-west-2

- name: Save to S3
run: |
aws s3 sync ./config/ s3://${{ secrets.CONFIG_S3_BUCKET }}/config/ --delete

0 comments on commit e4cf2d1

Please sign in to comment.