-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (34 loc) · 1 KB
/
manual_publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: "Publish Manually"
on:
workflow_dispatch:
inputs:
provider:
type: choice
description: Choose the provider you want to publish
options:
- "amazon-ebs"
- "digitalocean"
- "googlecompute"
required: true
env:
PACKER_VERSION: "latest"
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
DIGITALOCEAN_ACCESS_TOKEN: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}
jobs:
publishing:
name: publishing
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: 'google-github-actions/auth@v2'
with:
credentials_json: '${{ secrets.GOOGLE_CREDENTIALS }}'
- name: Setup `packer`
uses: hashicorp/setup-packer@main
with:
version: ${{ env.PACKER_VERSION }}
- name: Run `packer init`
run: "packer init ."
- name: Run `packer build`
run: "packer build -only ${{ github.event.inputs.provider }}.debian ."