Skip to content

Commit

Permalink
Feature/ci cd (#97)
Browse files Browse the repository at this point in the history
additional testing
  • Loading branch information
tsaucier-sf authored Jan 5, 2024
1 parent ea61140 commit 4974a40
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/deploy-backstage-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
id-token: write
contents: read
pull-requests: write
if: ${{ github.event.workflow_run.conclusion == 'success' }}

steps:
- name: Checkout
Expand All @@ -48,7 +49,7 @@ jobs:
id: workflow_vars
run: |
echo "plan_id=$(git rev-parse --short "$GITHUB_SHA")" >> $GITHUB_OUTPUT
echo "git_tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
echo "git_tag=${github.ref_name}" >> $GITHUB_OUTPUT
# configure iam
- name: Configure IAM Role
Expand All @@ -70,7 +71,7 @@ jobs:
id: prod_plan
shell: bash
run: |
./scripts/action-init-plan-apply.sh -a prod
./scripts/action-init-plan-apply.sh -p prod
continue-on-error: false

#publish plan to artifacts
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/docker-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
name: Docker Push

on: # yamllint disable-line rule:truthy
workflow_run:
workflows: ["Tag"]
types:
- completed
push:
tags:
- '**'

jobs:
build_and_push_prod:
Expand All @@ -22,7 +21,7 @@ jobs:

- name: Set output
id: vars
run: echo "git_tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
run: echo "git_tag=${github.ref_name}" >> $GITHUB_OUTPUT

# configure iam
- name: Configure IAM Role
Expand Down
1 change: 1 addition & 0 deletions terraform/iam/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ locals {
"Action" : [
"ec2:*",
"ecs:*",
"ecr:*",
"route53:*",
"ssm:*",
"secretsmanager:*"
Expand Down

0 comments on commit 4974a40

Please sign in to comment.