|
51 | 51 | run: make deploy-linux
|
52 | 52 | - name: Clean up
|
53 | 53 | run: make clean-linux
|
54 |
| - build-deploy-windows: |
55 |
| - strategy: |
56 |
| - matrix: |
57 |
| - include: |
58 |
| - - os: windows-2022 |
59 |
| - version: 2022 |
60 |
| - runs-on: ${{ matrix.os }} |
61 |
| - steps: |
62 |
| - - uses: actions/checkout@v3 |
63 |
| - - name: Determine download URL for latest pack |
64 |
| - id: pack-download-url |
65 |
| - uses: actions/github-script@v6 |
66 |
| - with: |
67 |
| - github-token: ${{secrets.GITHUB_TOKEN}} |
68 |
| - result-encoding: string |
69 |
| - # FIXME: Revert back to 'getLatestRelease' when pack v0.31.0 is released |
70 |
| - script: | |
71 |
| - return github.rest.repos.getReleaseByTag({ |
72 |
| - owner: "buildpacks", |
73 |
| - repo: "pack", |
74 |
| - tag: "v0.31.0-rc1" |
75 |
| - }).then(result => { |
76 |
| - return result.data.assets |
77 |
| - .filter(a => a.name.includes("windows")) |
78 |
| - .map(a => a.browser_download_url)[0]; |
79 |
| - }) |
80 |
| - - name: Install pack |
81 |
| - run: | |
82 |
| - curl -s -L -o pack.zip ${{ steps.pack-download-url.outputs.result }} |
83 |
| - tar -xvf pack.zip |
84 |
| - mkdir ~\.pack |
85 |
| - - name: Set Experimental |
86 |
| - run: make set-experimental |
87 |
| - - name: Build |
88 |
| - run: make build-windows-${{ matrix.version }} |
89 |
| - - uses: azure/docker-login@v1 |
90 |
| - if: ${{ github.ref == 'refs/heads/main' }} |
91 |
| - with: |
92 |
| - username: cnbs |
93 |
| - password: ${{ secrets.REGISTRY_PASSWORD }} |
94 |
| - - name: Deploy |
95 |
| - if: ${{ github.ref == 'refs/heads/main' }} |
96 |
| - run: make deploy-windows-${{ matrix.version }} |
97 |
| - build-deploy-windows-packages: |
98 |
| - runs-on: windows-2022 |
99 |
| - steps: |
100 |
| - - uses: actions/checkout@v3 |
101 |
| - - name: Determine download URL for latest pack |
102 |
| - id: pack-download-url |
103 |
| - uses: actions/github-script@v6 |
104 |
| - with: |
105 |
| - github-token: ${{secrets.GITHUB_TOKEN}} |
106 |
| - result-encoding: string |
107 |
| - script: | |
108 |
| - return github.rest.repos.getLatestRelease({ |
109 |
| - owner: "buildpacks", |
110 |
| - repo: "pack" |
111 |
| - }).then(result => { |
112 |
| - return result.data.assets |
113 |
| - .filter(a => a.name.includes("windows")) |
114 |
| - .map(a => a.browser_download_url)[0]; |
115 |
| - }) |
116 |
| - - name: Install pack |
117 |
| - run: | |
118 |
| - curl -s -L -o pack.zip ${{ steps.pack-download-url.outputs.result }} |
119 |
| - tar -xvf pack.zip |
120 |
| - mkdir ~\.pack |
121 |
| - - name: Set Experimental |
122 |
| - run: make set-experimental |
123 |
| - - name: Build |
124 |
| - run: make build-windows-packages |
125 |
| - - uses: azure/docker-login@v1 |
126 |
| - if: ${{ github.ref == 'refs/heads/main' }} |
127 |
| - with: |
128 |
| - username: cnbs |
129 |
| - password: ${{ secrets.REGISTRY_PASSWORD }} |
130 |
| - - name: Deploy |
131 |
| - if: ${{ github.ref == 'refs/heads/main' }} |
132 |
| - run: make deploy-windows-packages |
0 commit comments