mirror of
https://github.com/ivabus/www
synced 2024-11-13 03:45:16 +03:00
log bucket
This commit is contained in:
parent
54ffcf9b12
commit
fee0eb2fd6
|
@ -9,8 +9,6 @@ import {
|
||||||
RemovalPolicy,
|
RemovalPolicy,
|
||||||
CfnOutput } from "aws-cdk-lib";
|
CfnOutput } from "aws-cdk-lib";
|
||||||
import { Construct } from "constructs";
|
import { Construct } from "constructs";
|
||||||
import fs from "fs";
|
|
||||||
import path from "path";
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The CloudFormation stack holding all our resources
|
* The CloudFormation stack holding all our resources
|
||||||
|
@ -26,10 +24,6 @@ export default class TeaXYZ extends Stack {
|
||||||
autoDeleteObjects: true,
|
autoDeleteObjects: true,
|
||||||
removalPolicy: RemovalPolicy.DESTROY,
|
removalPolicy: RemovalPolicy.DESTROY,
|
||||||
});
|
});
|
||||||
console.log("BUCKET ARN:", bucket.bucketArn)
|
|
||||||
fs.writeFile(path.join(process.cwd(), "bucket.txt"), bucket.bucketName, () => {
|
|
||||||
console.log('bucket name shared');
|
|
||||||
})
|
|
||||||
|
|
||||||
const edgeLambda = lambda.Version.fromVersionArn(this, "Lambda", "arn:aws:lambda:us-east-1:640264234305:function:www-redirect:10");
|
const edgeLambda = lambda.Version.fromVersionArn(this, "Lambda", "arn:aws:lambda:us-east-1:640264234305:function:www-redirect:10");
|
||||||
|
|
||||||
|
|
14
.github/workflows/staging.yml
vendored
14
.github/workflows/staging.yml
vendored
|
@ -92,12 +92,18 @@ jobs:
|
||||||
run: yarn deploy
|
run: yarn deploy
|
||||||
working-directory: .cdk
|
working-directory: .cdk
|
||||||
|
|
||||||
- run: cat .cdk/cdk.out.json
|
- uses: 8BitJonny/gh-get-current-pr@2.1.3
|
||||||
|
id: PR
|
||||||
|
|
||||||
|
- name: get cdk bucket
|
||||||
|
run: |
|
||||||
|
aws s3 ls | grep teaxyz-pr-${{ steps.PR.outputs.number }}
|
||||||
|
|
||||||
|
|
||||||
# sync images from www.tea.xyz/Images/packages to wherever bucket you are
|
# sync images from www.tea.xyz/Images/packages to wherever bucket you are
|
||||||
- run: |
|
# - run: |
|
||||||
aws s3 sync s3://www.tea.xyz/Images/packages \
|
# aws s3 sync s3://www.tea.xyz/Images/packages \
|
||||||
s3://TeaXYZ-${STAGE}/Images/packages
|
# s3://TeaXYZ-${STAGE}/Images/packages
|
||||||
|
|
||||||
- name: Seal Deployment
|
- name: Seal Deployment
|
||||||
uses: bobheadxi/deployments@v1
|
uses: bobheadxi/deployments@v1
|
||||||
|
|
Loading…
Reference in a new issue