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

Commit

Permalink
Testing the CI/CD pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
FelipeCarillo committed Mar 22, 2024
1 parent d5b9c8a commit ea464c6
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 11 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@ jobs:
npm run build
cdk deploy --require-approval never
env:
OWNER: ${{ vars.OWNER }}
STAGE: ${{ github.ref_name }}
REPOSITORY: ${{ github.repository }}
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
AZURE_AUTHORITY_URL: ${{ secrets.AZURE_AUTHORITY_URL }}
AWS_REGION: ${{ secrets.AWS_REGION }}
Expand Down
16 changes: 16 additions & 0 deletions amplify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: 1
frontend:
phases:
preBuild:
commands:
- npm ci
build:
commands:
- npm run build
artifacts:
baseDirectory: build
files:
- "**/*"
cache:
paths:
- node_modules/**/*
10 changes: 1 addition & 9 deletions iac/lib/iac-stack.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import * as path from 'path';
import * as cdk from '@aws-cdk/core';
import { Asset } from '@aws-cdk/aws-s3-assets';
import * as amplify from '@aws-cdk/aws-amplify';
import * as codecommit from '@aws-cdk/aws-codecommit'

Expand All @@ -9,23 +7,17 @@ export class IacStack extends cdk.Stack {
super(scope, id, props);

const ENVIROMENT_VARIABLES = {
"OWNER": process.env.OWNER || "",
"STAGE": process.env.STAGE || "dev",
"AZURE_CLIENT_ID": process.env.AZURE_CLIENT_ID || "",
}

const coilAsset = new Asset(this, 'CoilFrontendAsset', {
path: path.join(__dirname, '..', '..')
});

const sampleRepo = new codecommit.Repository(
this,
"CoilFrontendRepo",
{
repositoryName: "coil-frontend-repo-" + ENVIROMENT_VARIABLES.STAGE,
description:
"Repository for the frontend of the Coil project",
code: codecommit.Code.fromAsset(coilAsset),
"Repository for the frontend of the Coil project"
},
)

Expand Down

0 comments on commit ea464c6

Please sign in to comment.