Skip to content

Commit

Permalink
Install docker-compose if absent
Browse files Browse the repository at this point in the history
  • Loading branch information
kezhenxu94 committed Aug 4, 2024
1 parent 7f6b0da commit 3f4ab14
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,19 @@ inputs:
batch-mode:
description: Whether to run in batch mode, all interactive operations are disabled
required: false
default: 'true'
default: "true"
runs:
using: "composite"
steps:
- name: Install docker-compose
shell: bash
if: runner.os != 'Windows'
run: |
if ! command docker-compose 2>&1 > /dev/null; then
echo "Installing docker-compose"
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
fi
- name: Set up Go 1.18
uses: actions/setup-go@v4
with:
Expand All @@ -39,7 +48,7 @@ runs:
- shell: bash
run: make -C $GITHUB_ACTION_PATH install DESTDIR=/usr/local/bin
- name: E2E Dir Generator
id: 'e2e-dir-generator'
id: "e2e-dir-generator"
shell: bash
run: |
WORK_DIR="${{ runner.temp }}/skywalking-infra-e2e"
Expand Down

0 comments on commit 3f4ab14

Please sign in to comment.