Skip to content

Commit 0690d13

Browse files
authored
Remove pack acceptance test on windows. (#1421)
Ref: buildpacks/rfcs#311 We don't want to block lifecycle releases on pack windows failure anymore. They are unstable and not something we are staffed to invest time into. Signed-off-by: Jesse Brown <[email protected]>
1 parent 58f58e5 commit 0690d13

File tree

1 file changed

+0
-72
lines changed

1 file changed

+0
-72
lines changed

.github/workflows/build.yml

-72
Original file line numberDiff line numberDiff line change
@@ -291,75 +291,3 @@ jobs:
291291
LIFECYCLE_PATH="../lifecycle-v${{ env.LIFECYCLE_VERSION }}+linux.x86-64.tgz" \
292292
LIFECYCLE_IMAGE="buildpacksio/lifecycle:${{ env.LIFECYCLE_IMAGE_TAG }}" \
293293
make acceptance
294-
pack-acceptance-windows:
295-
if: github.event_name == 'push'
296-
needs: build-and-publish
297-
runs-on: windows-2019
298-
steps:
299-
- name: Set git to use LF and symlinks
300-
run: |
301-
git config --global core.autocrlf false
302-
git config --global core.eol lf
303-
git config --global core.symlinks true
304-
- uses: actions/checkout@v4
305-
with:
306-
repository: 'buildpacks/pack'
307-
path: 'pack'
308-
ref: 'main'
309-
fetch-depth: 0 # fetch all history for all branches and tags
310-
- name: Setup go
311-
uses: actions/setup-go@v5
312-
with:
313-
go-version-file: 'pack/go.mod'
314-
- name: Add runner IP to daemon insecure-registries and firewall
315-
shell: powershell
316-
run: |
317-
# Get IP from default gateway interface
318-
$IPAddress=(Get-NetIPAddress -InterfaceAlias ((Get-NetRoute "0.0.0.0/0").InterfaceAlias) -AddressFamily IPv4)[0].IPAddress
319-
320-
# Allow container-to-host registry traffic (from public interface, to the same interface)
321-
New-NetfirewallRule -DisplayName test-registry -LocalAddress $IPAddress -RemoteAddress $IPAddress
322-
323-
# create or update daemon config to allow host as insecure-registry
324-
$config=@{}
325-
if (Test-Path C:\ProgramData\docker\config\daemon.json) {
326-
$config=(Get-Content C:\ProgramData\docker\config\daemon.json | ConvertFrom-json)
327-
}
328-
$config | Add-Member -Force -Name "insecure-registries" -value @("$IPAddress/32") -MemberType NoteProperty
329-
ConvertTo-json $config | Out-File -Encoding ASCII C:\ProgramData\docker\config\daemon.json
330-
331-
Restart-Service docker
332-
333-
# dump docker info for auditing
334-
docker version
335-
docker info
336-
- name: Modify etc\hosts to include runner IP
337-
shell: powershell
338-
run: |
339-
$IPAddress=(Get-NetIPAddress -InterfaceAlias ((Get-NetRoute "0.0.0.0/0").InterfaceAlias) -AddressFamily IPv4)[0].IPAddress
340-
"# Modified by CNB: https://github.com/buildpacks/ci/tree/main/gh-runners/windows
341-
${IPAddress} host.docker.internal
342-
${IPAddress} gateway.docker.internal
343-
" | Out-File -Filepath C:\Windows\System32\drivers\etc\hosts -Encoding utf8
344-
- uses: actions/download-artifact@v4
345-
with:
346-
name: version
347-
- uses: actions/download-artifact@v4
348-
with:
349-
name: tag
350-
- name: Set env
351-
run: |
352-
cat version.txt >> $env:GITHUB_ENV
353-
cat tag.txt >> $env:GITHUB_ENV
354-
- uses: actions/download-artifact@v4
355-
with:
356-
name: lifecycle-windows-x86-64
357-
path: pack
358-
- name: Run pack acceptance
359-
run: |
360-
cd pack
361-
git checkout $(git describe --abbrev=0 --tags) # check out the latest tag
362-
$env:LIFECYCLE_PATH="..\lifecycle-v${{ env.LIFECYCLE_VERSION }}+windows.x86-64.tgz"
363-
$env:LIFECYCLE_IMAGE="buildpacksio/lifecycle:${{ env.LIFECYCLE_IMAGE_TAG }}"
364-
make acceptance
365-

0 commit comments

Comments
 (0)