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

add: pulumi preview #24

Merged
merged 10 commits into from
Sep 24, 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
78 changes: 78 additions & 0 deletions .github/workflows/pulumi-preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
name: Pulumi Preview
on:
pull_request:
paths:
- pulumi/**
- .github/workflows/pulumi-preview.yml

concurrency:
group: ghas-erfiume-pulumi-preview-${{ github.ref }}
cancel-in-progress: true

jobs:
pulumi-preview:
name: Pulumi Preview
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
id-token: write
defaults:
run:
working-directory: ./pulumi
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
# v4.1.7
with:
fetch-depth: 0
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3
# v5.2.0
with:
python-version: 3.12
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
# v4.0.2
with:
path: ~/.local
key: poetry-latest
- uses: snok/install-poetry@76e04a911780d5b312d89783f7b1cd627778900a
# v1.4.1
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
- id: cache-deps
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
# v4.0.2
with:
path: .venv
key: python-3.12-poetry-${{ hashFiles('**/poetry.lock') }}
- run: poetry install
if: steps.cache-deps.outputs.cache-hit != 'true'
- uses: pulumi/auth-actions@80dec0d5e009a11565cbf87d9ef9103fc7d24198
# v1.0.0
with:
organization: notdodo
requested-token-type: urn:pulumi:token-type:access_token:personal
scope: user:notdodo
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
# v4.0.2
with:
path: ~/.pulumi/plugins
key: python-3.12-pulumi-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
python-3.12-pulumi-
- uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502
# v4.0.2
with:
role-to-assume: arn:aws:iam::841162699174:role/erfiume-oidc-read
aws-region: eu-west-1
- uses: pulumi/actions@cd99a7f8865434dd3532b586a26f9ebea596894f
# v5.5.1
with:
command: preview
stack-name: notdodo/erfiume/production
work-dir: ./pulumi
comment-on-pr: true
color: always
suppress-progress: true
always-include-summary: true
147 changes: 146 additions & 1 deletion pulumi/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pulumi/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ python = "^3.12"
pulumi-aws = "^6.52.0"
pulumi-command = "^1.0.1"
pulumi-cloudflare = "^5.39.0"
requests = "^2.32.3"

[tool.poetry.group.dev.dependencies]
awscli-local = "^0.22.0"
Expand Down
Loading