mirror of
https://github.com/bitwarden/self-host.git
synced 2026-06-28 14:25:45 +00:00
39 lines
1.1 KiB
YAML
39 lines
1.1 KiB
YAML
---
|
|
name: Digital Ocean 1-Click Release
|
|
|
|
on:
|
|
workflow_run:
|
|
workflows:
|
|
- Release
|
|
types:
|
|
- completed
|
|
workflow_dispatch:
|
|
inputs: {}
|
|
|
|
jobs:
|
|
build-image:
|
|
name: Build Image
|
|
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- name: Checkout repo
|
|
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
|
|
|
|
- name: Login to Azure - Prod Subscription
|
|
uses: Azure/login@ec3c14589bd3e9312b3cc8c41e6860e258df9010
|
|
with:
|
|
creds: ${{ secrets.AZURE_PROD_KV_CREDENTIALS }}
|
|
|
|
- name: Retrieve secrets
|
|
id: retrieve-secrets
|
|
uses: Azure/get-keyvault-secrets@b5c723b9ac7870c022b8c35befe620b7009b336f
|
|
with:
|
|
keyvault: "bitwarden-prod-kv"
|
|
secrets: "digital-ocean-api-key"
|
|
|
|
- name: Build Digital Ocean Image
|
|
env:
|
|
DIGITALOCEAN_TOKEN: ${{ steps.retrieve-secrets.outputs.digital-ocean-api-key }}
|
|
working-directory: ./DigitalOceanMarketplace
|
|
run: packer build marketplace-image.json
|