Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing badges and github workflows #8

Merged
merged 2 commits into from
Oct 5, 2024
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
7 changes: 2 additions & 5 deletions .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,11 @@ jobs:

- name: Terraform Apply
id: tf_apply
continue-on-error: true
run: terraform apply -lock=false -input=false ${{ env.stage }}.tfplan

- name: Post status to Slack channel
id: tf_apply_successs
if: steps.tf_apply.outcome == 'success'
continue-on-error: true
if: always() && steps.tf_apply.outcome == 'success'
uses: slackapi/[email protected]
with:
channel-id: ${{ secrets.SLACK_CHANNEL_ID }}
Expand All @@ -114,8 +112,7 @@ jobs:

- name: Post status to Slack channel
id: tf_apply_failure
if: steps.tf_apply.outcome != 'success'
continue-on-error: true
if: always() && steps.tf_apply.outcome != 'success'
uses: slackapi/[email protected]
with:
channel-id: ${{ secrets.SLACK_CHANNEL_ID }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 📝 Validation
name: 📝 Validate & Plan

on:
push:
Expand All @@ -12,7 +12,7 @@ permissions:
contents: read

jobs:
validate:
validate-and-plan:
permissions:
id-token: write
contents: read
Expand Down Expand Up @@ -92,3 +92,15 @@ jobs:
- name: Terraform Validate
id: tf_validate
run: terraform validate -no-color

- name: Configure Terraform Plan Credentials
id: plan_creds
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: ${{ secrets.AWS_REGION }}
role-to-assume: ${{ secrets.AWS_ROLE }}
role-session-name: GooseTFPlan

- name: Terraform Plan
id: tf_plan
run: terraform plan -var-file="${{ env.stage }}.tfvars" -out ${{ env.stage }}.tfplan -lock=false
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<!-- markdownlint-disable MD033 MD041 -->
<p align="center">
<a href="https://github.com/Element84/goose/actions?query=workflow%3ADeploy%20Dev" target="_blank">
<img src="https://github.com/Element84/goose/workflows/Deploy%20Dev/badge.svg" alt="Deploy Status">
<img src="https://github.com/Element84/goose/actions/workflows/deploy-dev.yml/badge.svg" alt="Deploy Status">
</a>
<a href="https://github.com/Element84/goose/actions?query=workflow%3ASnyk%20Scan" target="_blank">
<img src="https://github.com/Element84/goose/workflows/Snyk%20Scan/badge.svg" alt="Scan Status">
<img src="https://github.com/Element84/goose/actions/workflows/snyk-scan.yml/badge.svg" alt="Scan Status">
</a>
<a href="https://github.com/Element84/goose/blob/main/LICENSE" target="_blank">
<img src="https://img.shields.io/github/license/Element84/goose?color=2334D058" alt="License">
Expand Down
Loading