-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (36 loc) · 1.18 KB
/
build-provider.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
42
43
44
45
46
47
name: Build provider
on: { push: { branches-ignore: [future, main] } }
concurrency:
group: build-provider-${{ github.ref }}
cancel-in-progress: true
jobs:
build-provider:
name: Build provider
runs-on: ubuntu-latest
container: golang:1.19-alpine
steps:
- name: Install build dependencies
run: |
apk add --no-cache alpine-sdk git bash
- name: Check out repository code
uses: actions/checkout@main
- name: Treat repo as safe
run: git config --global --add safe.directory /__w/pulumi-spacelift/pulumi-spacelift
- name: Remove Pulumi directory
run: rm -rf /github/home/.pulumi
- name: Install pulumictl
uses: jaxxstorm/[email protected]
with:
repo: pulumi/pulumictl
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install pulumi
uses: pulumi/actions@v4
- name: Tag version
run: git tag -d `git tag | grep -E '.'` && git tag v0.0.0
- name: Print version
run: pulumictl get version
- name: Build provider
run: make provider
env:
PROVIDER_OS: ${{ matrix.provider_os }}