Skip to content

🚜 STG - Build, Deploy, and Test - PR #1279: fix(ci): add robots.txt to remove *reports.dgrebb.com from search ind… #1133

🚜 STG - Build, Deploy, and Test - PR #1279: fix(ci): add robots.txt to remove *reports.dgrebb.com from search ind…

🚜 STG - Build, Deploy, and Test - PR #1279: fix(ci): add robots.txt to remove *reports.dgrebb.com from search ind… #1133

Workflow file for this run

name: 🚜 Build, Deploy, and Test
run-name: "🚜 ${{ github.ref_name == 'main' && 'PRD' || 'STG' }} - Build, Deploy, and Test - ${{ github.event_name == 'pull_request' && format('PR #{0}: {1}', github.event.pull_request.number, github.event.pull_request.title) || format('latest {0}', github.ref_name) }}"
on:
workflow_dispatch:
pull_request:
branches: [main, develop]
push:
branches: [develop]
permissions:
checks: write
contents: write
pull-requests: write
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
jobs:
pass-early:
runs-on: ubuntu-latest
outputs:
PASS_EARLY: ${{ steps.pass-early.outputs.PASS_EARLY }}
steps:
- name: 𐂷 Checkout
uses: actions/checkout@v4
with:
repository: dgrebb/dgrebb.com
ref: ${{ github.ref }}
token: ${{ github.token }}
fetch-depth: 1
sparse-checkout: |
.github/actions
front
- name: Pass Early
id: pass-early
uses: ./.github/actions/pass-early
with:
WORKSPACE_ROOT: .
TEST_DIRECTORY: front
lint:
name: 💨
if: ${{ needs.pass-early.outputs.PASS_EARLY == 'false' }}
uses: ./.github/workflows/lint.yml
with:
env: ${{ github.ref_name == 'main' && 'prd' || 'stg' }}
build_deploy:
name: 🚀
if: ${{ needs.pass-early.outputs.PASS_EARLY == 'false' }}
needs: lint
uses: ./.github/workflows/bd-fe.yml
with:
env: ${{ github.ref_name == 'main' && 'prd' || 'stg' }}
secrets:
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: ${{ secrets.AWS_REGION }}
PUBLIC_API_URL: ${{ secrets.PUBLIC_API_URL }}
PUBLIC_API_PATH_NAVIGATION: ${{ secrets.PUBLIC_API_PATH_NAVIGATION }}
PUBLIC_API_PATH_HOME: ${{ secrets.PUBLIC_API_PATH_HOME }}
PUBLIC_API_PATH_FOOTER: ${{ secrets.PUBLIC_API_PATH_FOOTER }}
PUBLIC_API_PATH_PRIVACY: ${{ secrets.PUBLIC_API_PATH_PRIVACY }}
PUBLIC_API_PATH_POSTS_PAGE: ${{ secrets.PUBLIC_API_PATH_POSTS_PAGE }}
PUBLIC_API_PATH_POSTS: ${{ secrets.PUBLIC_API_PATH_POSTS }}
PUBLIC_POSTS_PREVIEW_PARAMS: ${{ secrets.PUBLIC_POSTS_PREVIEW_PARAMS }}
PUBLIC_API_PATH_POST: ${{ secrets.PUBLIC_API_PATH_POST }}
PUBLIC_POST_PARAMS: ${{ secrets.PUBLIC_POST_PARAMS }}
PUBLIC_API_PATH_CATEGORY: ${{ secrets.PUBLIC_API_PATH_CATEGORY }}
PUBLIC_CATEGORY_PAGE_PARAMS: ${{ secrets.PUBLIC_CATEGORY_PAGE_PARAMS }}
PUBLIC_API_PATH_CV_PAGE: ${{ secrets.PUBLIC_API_PATH_CV_PAGE }}
PUBLIC_API_LANDING_PAGE_PARTIAL: ${{ secrets.PUBLIC_API_LANDING_PAGE_PARTIAL }}
PUBLIC_API_CV_COLLECTION_PARAMS: ${{ secrets.PUBLIC_API_CV_COLLECTION_PARAMS }}
PUBLIC_API_CV_PATH_LANDING_POSITION_LISTING: ${{ secrets.PUBLIC_API_CV_PATH_LANDING_POSITION_LISTING }}
PUBLIC_API_CV_PATH_LANDING_EXPERIENCE_LISTING: ${{ secrets.PUBLIC_API_CV_PATH_LANDING_EXPERIENCE_LISTING }}
API_KEY: ${{ secrets.API_KEY }}
PUBLIC_ENV: ${{ secrets.PUBLIC_ENV }}
DISTRIBUTION: ${{ secrets.DISTRIBUTION }}
GH_WORKFLOW_TOKEN: ${{ secrets.GH_WORKFLOW_TOKEN }}
backstop:
name: 👀
if: ${{ needs.pass-early.outputs.PASS_EARLY == 'false' }}
needs: build_deploy
uses: ./.github/workflows/test-backstop.yml
with:
env: ${{ github.ref_name == 'main' && 'prd' || 'stg' }}
secrets:
GH_WORKFLOW_TOKEN: ${{ secrets.GH_WORKFLOW_TOKEN }}
AWS_S3_BUCKET_REPORTS: ${{ secrets.AWS_S3_BUCKET_REPORTS }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: ${{ secrets.AWS_REGION }}
REPORTS_DISTRIBUTION: ${{ secrets.REPORTS_DISTRIBUTION }}
lighthouse:
name: 🕯️
if: ${{ needs.pass-early.outputs.PASS_EARLY == 'false' }}
needs: build_deploy
uses: ./.github/workflows/test-lighthouse.yml
with:
env: ${{ github.ref_name == 'main' && 'prd' || 'stg' }}
secrets:
AWS_S3_BUCKET_REPORTS: ${{ secrets.AWS_S3_BUCKET_REPORTS }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: ${{ secrets.AWS_REGION }}
REPORTS_DISTRIBUTION: ${{ secrets.REPORTS_DISTRIBUTION }}
GH_WORKFLOW_TOKEN: ${{ secrets.GH_WORKFLOW_TOKEN }}
pagespeed:
name: 📈
if: ${{ needs.pass-early.outputs.PASS_EARLY == 'false' }}
needs: build_deploy
uses: ./.github/workflows/test-psi.yml
with:
env: ${{ github.ref_name == 'main' && 'prd' || 'stg' }}
secrets:
PSI_APIKEY: ${{ secrets.PSI_APIKEY }}
GH_WORKFLOW_TOKEN: ${{ secrets.GH_WORKFLOW_TOKEN }}
summarize:
if: ${{ needs.pass-early.outputs.PASS_EARLY == 'false' }}
name: ✍ Workflow
needs: [backstop, lighthouse, pagespeed]
runs-on: ubuntu-latest
environment:
name: ${{ github.ref_name == 'main' && 'prd' || 'stg' }}
url: "https://${{ vars.WWW_DOMAIN }}"
steps:
- name: generate
run: |
echo '# Summary' >> $GITHUB_STEP_SUMMARY
echo '## Run Initiator'
echo '- Actor: ${{ github.actor }}' >> $GITHUB_STEP_SUMMARY
echo '- Event: ${{ github.event_name }}' >> $GITHUB_STEP_SUMMARY
echo '## Run Details' >> $GITHUB_STEP_SUMMARY
echo '- Branch: [${{ env.BRANCH_NAME }}](https://github.com/dgrebb/dgrebb.com/tree/${{ env.BRANCH_NAME }})' >> $GITHUB_STEP_SUMMARY
if [ "${{ github.event_name }}" == "pull_request" ]; then
echo '- Pull Request: [#${{ github.event.number }}](https://github.com/dgrebb/dgrebb.com/pull/${{ github.event.number }}) ${{ github.event.pull_request.title }}' >> $GITHUB_STEP_SUMMARY
echo '- ${{ github.event.pull_request.changed_files }} Files Changed: [ ${{ github.event.pull_request.commits }} Commits](https://github.com/dgrebb/dgrebb.com/pull/${{ github.event.number }}/commits) | [Diff](https://github.com/dgrebb/dgrebb.com/pull/${{ github.event.number }}/files)' >> $GITHUB_STEP_SUMMARY
fi