Skip to content

Commit c060708

Browse files
committed
Managed by Terraform: Update build-and-persist-plugin-binary github action
1 parent 3cb9b79 commit c060708

File tree

1 file changed

+21
-0
lines changed
  • .github/actions/build-and-persist-plugin-binary

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: build-and-persist-plugin-binary
2+
inputs:
3+
GOOS:
4+
required: true
5+
GOARCH:
6+
required: true
7+
runs:
8+
using: composite
9+
steps:
10+
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0
11+
- run: "GOOS=${{ inputs.GOOS }} GOARCH=${{ inputs.GOARCH }} go build -o ./pkg/packer_plugin_proxmox_${{ inputs.GOOS }}_${{ inputs.GOARCH }} ."
12+
shell: bash
13+
- run: zip ./pkg/packer_plugin_proxmox_${{ inputs.GOOS }}_${{ inputs.GOARCH }}.zip ./pkg/packer_plugin_proxmox_${{ inputs.GOOS }}_${{ inputs.GOARCH }}
14+
shell: bash
15+
- run: rm ./pkg/packer_plugin_proxmox_${{ inputs.GOOS }}_${{ inputs.GOARCH }}
16+
shell: bash
17+
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
18+
with:
19+
name: "packer_plugin_proxmox_${{ inputs.GOOS }}_${{ inputs.GOARCH }}.zip"
20+
path: "pkg/packer_plugin_proxmox_${{ inputs.GOOS }}_${{ inputs.GOARCH }}.zip"
21+
retention-days: 30

0 commit comments

Comments
 (0)