Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 16 additions & 11 deletions .github/workflows/bootstrap-templates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,25 @@ on:
tags: ["*"]
branches: ["bootstrapper"]

permissions:
id-token: write
contents: read

jobs:
# The publish job will publish the bootstrap-templates directory to the correct S3 Bucket
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: jakejarvis/s3-sync-action@master
- uses: actions/checkout@v4

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
args: --acl private --follow-symlinks
env:
# Credentials for this workflow are provisioned in the `terraform` directory
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_S3_BUCKET: truss-cli-global-config
AWS_REGION: us-east-2
SOURCE_DIR: bootstrap-templates
DEST_DIR: bootstrap-templates
role-to-assume: arn:aws:iam::127178877223:role/github/truss-cli-github-actions
aws-region: us-east-2

- name: Sync to S3
run: |
aws s3 sync bootstrap-templates/ s3://truss-cli-global-config/bootstrap-templates/ \
--follow-symlinks \
--delete
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@ dist/

# vscode
.vscode/
terraform/.state-backup/
23 changes: 0 additions & 23 deletions terraform/config.tf

This file was deleted.

51 changes: 0 additions & 51 deletions terraform/main.tf

This file was deleted.

Loading