Skip to content

Commit

Permalink
fix: create auto deployment on dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Björn Urban committed Dec 27, 2024
1 parent bfab105 commit 15debbe
Showing 1 changed file with 32 additions and 2 deletions.
34 changes: 32 additions & 2 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@ on:
- "renovate/*"
jobs:
preview:
name: Preview
name: Preview-Prod
environment: development
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
workdir: [ l1, l2 ]
stack: [hetzner]
stack: [openstack]
steps:
- uses: actions/checkout@v4
- uses: actions/[email protected]
Expand All @@ -34,3 +35,32 @@ jobs:
stack-name: ${{ matrix.stack }}
env:
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
preview-prod:
name: Preview-Prod
runs-on: ubuntu-latest
environment: prod
strategy:
fail-fast: false
matrix:
workdir: [ l1, l2 ]
stack: [hetzner]
steps:
- uses: actions/checkout@v4
- uses: actions/[email protected]
with:
node-version: '19.9.0'
- name: Decode kubeconfig
run: |
mkdir -p $HOME/.kube
echo "${{ secrets.KUBE_CONFIG }}" | base64 -d > $HOME/.kube/config
cat $HOME/.kube/config
shell: bash
- run: npm install
working-directory: ${{ matrix.workdir }}
- uses: pulumi/actions@v6
with:
command: preview
work-dir: ${{ matrix.workdir }}
stack-name: ${{ matrix.stack }}
env:
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}

0 comments on commit 15debbe

Please sign in to comment.