Skip to content

Commit

Permalink
rollout gzipping of binaries as part of publish pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
stack72 authored Sep 4, 2020
1 parent 77e4d06 commit 8a860f4
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 16 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,11 @@ jobs:
- name: Download provider + tfgen binaries
uses: actions/download-artifact@v2
with:
name: pulumi-${{ env.PROVIDER }}
name: ${{ env.PROVIDER }}-provider.tar.gz
path: ${{ github.workspace }}/bin
- name: Untar provider binaries
run: tar -zxf ${{ github.workspace }}/bin/provider.tar.gz -C ${{ github.workspace
}}/bin
- name: Restore binary perms
run: find ${{ github.workspace }} -name "pulumi-*-${{ env.PROVIDER }}" -print
-exec chmod +x {} \;
Expand Down Expand Up @@ -191,11 +194,15 @@ jobs:
uses: pulumi/action-install-pulumi-cli@releases/v1
- name: Build tfgen & provider binaries
run: make provider
- name: Tar provider binaries
run: tar -zcf ${{ github.workspace }}/bin/provider.tar.gz -C ${{ github.workspace
}}/bin/ pulumi-resource-${{ env.PROVIDER }} pulumi-tfgen-${{ env.PROVIDER
}}
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: pulumi-${{ env.PROVIDER }}
path: ${{ github.workspace }}/bin
name: ${{ env.PROVIDER }}-provider.tar.gz
path: ${{ github.workspace }}/bin/provider.tar.gz
- if: failure() && github.event_name == 'push'
name: Notify Slack
uses: 8398a7/action-slack@v3
Expand Down Expand Up @@ -352,8 +359,11 @@ jobs:
- name: Download provider + tfgen binaries
uses: actions/download-artifact@v2
with:
name: pulumi-${{ env.PROVIDER }}
name: ${{ env.PROVIDER }}-provider.tar.gz
path: ${{ github.workspace }}/bin
- name: Untar provider binaries
run: tar -zxf ${{ github.workspace }}/bin/provider.tar.gz -C ${{ github.workspace
}}/bin
- name: Restore binary perms
run: find ${{ github.workspace }} -name "pulumi-*-${{ env.PROVIDER }}" -print
-exec chmod +x {} \;
Expand Down
18 changes: 14 additions & 4 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,11 @@ jobs:
- name: Download provider + tfgen binaries
uses: actions/download-artifact@v2
with:
name: pulumi-${{ env.PROVIDER }}
name: ${{ env.PROVIDER }}-provider.tar.gz
path: ${{ github.workspace }}/bin
- name: Untar provider binaries
run: tar -zxf ${{ github.workspace }}/bin/provider.tar.gz -C ${{ github.workspace
}}/bin
- name: Restore binary perms
run: find ${{ github.workspace }} -name "pulumi-*-${{ env.PROVIDER }}" -print
-exec chmod +x {} \;
Expand Down Expand Up @@ -191,11 +194,15 @@ jobs:
uses: pulumi/action-install-pulumi-cli@releases/v1
- name: Build tfgen & provider binaries
run: make provider
- name: Tar provider binaries
run: tar -zcf ${{ github.workspace }}/bin/provider.tar.gz -C ${{ github.workspace
}}/bin/ pulumi-resource-${{ env.PROVIDER }} pulumi-tfgen-${{ env.PROVIDER
}}
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: pulumi-${{ env.PROVIDER }}
path: ${{ github.workspace }}/bin
name: ${{ env.PROVIDER }}-provider.tar.gz
path: ${{ github.workspace }}/bin/provider.tar.gz
- if: failure() && github.event_name == 'push'
name: Notify Slack
uses: 8398a7/action-slack@v3
Expand Down Expand Up @@ -340,8 +347,11 @@ jobs:
- name: Download provider + tfgen binaries
uses: actions/download-artifact@v2
with:
name: pulumi-${{ env.PROVIDER }}
name: ${{ env.PROVIDER }}-provider.tar.gz
path: ${{ github.workspace }}/bin
- name: Untar provider binaries
run: tar -zxf ${{ github.workspace }}/bin/provider.tar.gz -C ${{ github.workspace
}}/bin
- name: Restore binary perms
run: find ${{ github.workspace }} -name "pulumi-*-${{ env.PROVIDER }}" -print
-exec chmod +x {} \;
Expand Down
18 changes: 14 additions & 4 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,11 @@ jobs:
- name: Download provider + tfgen binaries
uses: actions/download-artifact@v2
with:
name: pulumi-${{ env.PROVIDER }}
name: ${{ env.PROVIDER }}-provider.tar.gz
path: ${{ github.workspace }}/bin
- name: Untar provider binaries
run: tar -zxf ${{ github.workspace }}/bin/provider.tar.gz -C ${{ github.workspace
}}/bin
- name: Restore binary perms
run: find ${{ github.workspace }} -name "pulumi-*-${{ env.PROVIDER }}" -print
-exec chmod +x {} \;
Expand Down Expand Up @@ -191,11 +194,15 @@ jobs:
uses: pulumi/action-install-pulumi-cli@releases/v1
- name: Build tfgen & provider binaries
run: make provider
- name: Tar provider binaries
run: tar -zcf ${{ github.workspace }}/bin/provider.tar.gz -C ${{ github.workspace
}}/bin/ pulumi-resource-${{ env.PROVIDER }} pulumi-tfgen-${{ env.PROVIDER
}}
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: pulumi-${{ env.PROVIDER }}
path: ${{ github.workspace }}/bin
name: ${{ env.PROVIDER }}-provider.tar.gz
path: ${{ github.workspace }}/bin/provider.tar.gz
- if: failure() && github.event_name == 'push'
name: Notify Slack
uses: 8398a7/action-slack@v3
Expand Down Expand Up @@ -243,8 +250,11 @@ jobs:
- name: Download provider + tfgen binaries
uses: actions/download-artifact@v2
with:
name: pulumi-${{ env.PROVIDER }}
name: ${{ env.PROVIDER }}-provider.tar.gz
path: ${{ github.workspace }}/bin
- name: Untar provider binaries
run: tar -zxf ${{ github.workspace }}/bin/provider.tar.gz -C ${{ github.workspace
}}/bin
- name: Restore binary perms
run: find ${{ github.workspace }} -name "pulumi-*-${{ env.PROVIDER }}" -print
-exec chmod +x {} \;
Expand Down
18 changes: 14 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,11 @@ jobs:
- name: Download provider + tfgen binaries
uses: actions/download-artifact@v2
with:
name: pulumi-${{ env.PROVIDER }}
name: ${{ env.PROVIDER }}-provider.tar.gz
path: ${{ github.workspace }}/bin
- name: Untar provider binaries
run: tar -zxf ${{ github.workspace }}/bin/provider.tar.gz -C ${{ github.workspace
}}/bin
- name: Restore binary perms
run: find ${{ github.workspace }} -name "pulumi-*-${{ env.PROVIDER }}" -print
-exec chmod +x {} \;
Expand Down Expand Up @@ -204,11 +207,15 @@ jobs:
uses: pulumi/action-install-pulumi-cli@releases/v1
- name: Build tfgen & provider binaries
run: make provider
- name: Tar provider binaries
run: tar -zcf ${{ github.workspace }}/bin/provider.tar.gz -C ${{ github.workspace
}}/bin/ pulumi-resource-${{ env.PROVIDER }} pulumi-tfgen-${{ env.PROVIDER
}}
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: pulumi-${{ env.PROVIDER }}
path: ${{ github.workspace }}/bin
name: ${{ env.PROVIDER }}-provider.tar.gz
path: ${{ github.workspace }}/bin/provider.tar.gz
- if: failure() && github.event_name == 'push'
name: Notify Slack
uses: 8398a7/action-slack@v3
Expand Down Expand Up @@ -360,8 +367,11 @@ jobs:
- name: Download provider + tfgen binaries
uses: actions/download-artifact@v2
with:
name: pulumi-${{ env.PROVIDER }}
name: ${{ env.PROVIDER }}-provider.tar.gz
path: ${{ github.workspace }}/bin
- name: Untar provider binaries
run: tar -zxf ${{ github.workspace }}/bin/provider.tar.gz -C ${{ github.workspace
}}/bin
- name: Restore binary perms
run: find ${{ github.workspace }} -name "pulumi-*-${{ env.PROVIDER }}" -print
-exec chmod +x {} \;
Expand Down

0 comments on commit 8a860f4

Please sign in to comment.