You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.0 KiB
39 lines
1.0 KiB
--- |
|
name: Release Digital Ocean 1-Click |
|
|
|
on: |
|
release: |
|
types: [published] |
|
|
|
push: |
|
paths: |
|
- "DigitalOceanMarketplace/**" |
|
|
|
workflow_dispatch: |
|
inputs: {} |
|
|
|
jobs: |
|
build-image: |
|
name: Build Image |
|
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
|
|
|