diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 089ada347..73f5539e1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -291,75 +291,3 @@ jobs: LIFECYCLE_PATH="../lifecycle-v${{ env.LIFECYCLE_VERSION }}+linux.x86-64.tgz" \ LIFECYCLE_IMAGE="buildpacksio/lifecycle:${{ env.LIFECYCLE_IMAGE_TAG }}" \ make acceptance - pack-acceptance-windows: - if: github.event_name == 'push' - needs: build-and-publish - runs-on: windows-2019 - steps: - - name: Set git to use LF and symlinks - run: | - git config --global core.autocrlf false - git config --global core.eol lf - git config --global core.symlinks true - - uses: actions/checkout@v4 - with: - repository: 'buildpacks/pack' - path: 'pack' - ref: 'main' - fetch-depth: 0 # fetch all history for all branches and tags - - name: Setup go - uses: actions/setup-go@v5 - with: - go-version-file: 'pack/go.mod' - - name: Add runner IP to daemon insecure-registries and firewall - shell: powershell - run: | - # Get IP from default gateway interface - $IPAddress=(Get-NetIPAddress -InterfaceAlias ((Get-NetRoute "0.0.0.0/0").InterfaceAlias) -AddressFamily IPv4)[0].IPAddress - - # Allow container-to-host registry traffic (from public interface, to the same interface) - New-NetfirewallRule -DisplayName test-registry -LocalAddress $IPAddress -RemoteAddress $IPAddress - - # create or update daemon config to allow host as insecure-registry - $config=@{} - if (Test-Path C:\ProgramData\docker\config\daemon.json) { - $config=(Get-Content C:\ProgramData\docker\config\daemon.json | ConvertFrom-json) - } - $config | Add-Member -Force -Name "insecure-registries" -value @("$IPAddress/32") -MemberType NoteProperty - ConvertTo-json $config | Out-File -Encoding ASCII C:\ProgramData\docker\config\daemon.json - - Restart-Service docker - - # dump docker info for auditing - docker version - docker info - - name: Modify etc\hosts to include runner IP - shell: powershell - run: | - $IPAddress=(Get-NetIPAddress -InterfaceAlias ((Get-NetRoute "0.0.0.0/0").InterfaceAlias) -AddressFamily IPv4)[0].IPAddress - "# Modified by CNB: https://github.com/buildpacks/ci/tree/main/gh-runners/windows - ${IPAddress} host.docker.internal - ${IPAddress} gateway.docker.internal - " | Out-File -Filepath C:\Windows\System32\drivers\etc\hosts -Encoding utf8 - - uses: actions/download-artifact@v4 - with: - name: version - - uses: actions/download-artifact@v4 - with: - name: tag - - name: Set env - run: | - cat version.txt >> $env:GITHUB_ENV - cat tag.txt >> $env:GITHUB_ENV - - uses: actions/download-artifact@v4 - with: - name: lifecycle-windows-x86-64 - path: pack - - name: Run pack acceptance - run: | - cd pack - git checkout $(git describe --abbrev=0 --tags) # check out the latest tag - $env:LIFECYCLE_PATH="..\lifecycle-v${{ env.LIFECYCLE_VERSION }}+windows.x86-64.tgz" - $env:LIFECYCLE_IMAGE="buildpacksio/lifecycle:${{ env.LIFECYCLE_IMAGE_TAG }}" - make acceptance -