generated from hashicorp/packer-plugin-scaffolding
-
Notifications
You must be signed in to change notification settings - Fork 10
/
action.yml
24 lines (23 loc) · 984 Bytes
/
action.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
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
name: build-and-persist-plugin-binary
inputs:
GOOS:
required: true
GOARCH:
required: true
runs:
using: composite
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- run: "GOOS=${{ inputs.GOOS }} GOARCH=${{ inputs.GOARCH }} go build -o ./pkg/packer_plugin_yandex_${{ inputs.GOOS }}_${{ inputs.GOARCH }} ."
shell: bash
- run: zip ./pkg/packer_plugin_yandex_${{ inputs.GOOS }}_${{ inputs.GOARCH }}.zip ./pkg/packer_plugin_yandex_${{ inputs.GOOS }}_${{ inputs.GOARCH }}
shell: bash
- run: rm ./pkg/packer_plugin_yandex_${{ inputs.GOOS }}_${{ inputs.GOARCH }}
shell: bash
- uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: "packer_plugin_yandex_${{ inputs.GOOS }}_${{ inputs.GOARCH }}.zip"
path: "pkg/packer_plugin_yandex_${{ inputs.GOOS }}_${{ inputs.GOARCH }}.zip"
retention-days: 30