Skip to content

Migrated secrets to variables #215

Migrated secrets to variables

Migrated secrets to variables #215

Workflow file for this run

name: Azure Pulumi
on:
push:
branches:
- main
paths:
- .github/workflows/azure-pulumi.yml
- pulumi/azure-python/**
- "!**.md"
pull_request:
paths:
- .github/workflows/azure-pulumi.yml
- pulumi/azure-python/**
- "!**.md"
workflow_dispatch:
inputs:
debug:
description: Debug
type: boolean
workflow_call:
env:
path: pulumi/azure-python
stack: dev
ARM_TENANT_ID: ${{ vars.AZURE_TENANT_ID }}
ARM_CLIENT_ID: ${{ vars.AZURE_CLIENT_ID }}
ARM_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set up cache
uses: actions/cache@v3
with:
path: ${{ env.path }}/venv/
key: ${{ runner.os }}-${{ hashFiles(format('{0}/requirements.txt', env.path)) }}
- name: Pulumi - Preview
uses: pulumi/actions@v4
with:
command: preview
work-dir: ${{ env.path }}
stack-name: ${{ env.stack }}
- name: Debug
if: inputs.debug && (success() || failure())
uses: mxschmitt/action-tmate@v3
release:
name: Release
if: github.ref == 'refs/heads/main'
needs: build
runs-on: ubuntu-latest
environment:
name: dev
url: https://pulumi.holm.io/
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set up cache
uses: actions/cache@v3
with:
path: ${{ env.path }}/venv/
key: ${{ runner.os }}-${{ hashFiles(format('{0}/requirements.txt', env.path)) }}
- name: Pulumi - Up
uses: pulumi/actions@v4
with:
command: up
work-dir: ${{ env.path }}
stack-name: ${{ env.stack }}
- name: Debug
if: inputs.debug && (success() || failure())
uses: mxschmitt/action-tmate@v3