Do not re-add segment line in /etc/host if already exists (for hosted runners) #147
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
jobs: | |
test-docker-desktop: | |
name: Test Docker Desktop installation and start | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] #, macos-latest ] | |
build-url: | |
[ | |
"latest", | |
"https://desktop-stage.docker.com/linux/main/amd64/152519/docker-desktop-4.32.0-amd64.deb", | |
] | |
timeout-minutes: 20 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Start Desktop | |
uses: ./start | |
timeout-minutes: 5 | |
with: | |
docker-desktop-build-url: ${{ matrix.build-url }} | |
- name: Docker Desktop version | |
run: docker version >> $GITHUB_STEP_SUMMARY | |
- name: Docker Desktop info | |
run: docker info | |
- name: Gather Diagnostics | |
if: ${{ failure() }} | |
run: /opt/docker-desktop/bin/com.docker.diagnose gather -upload |