You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by ke...@apache.org on 2024/08/04 05:33:03 UTC

(skywalking-infra-e2e) branch installdockercompose created (now 0aa0b34)

This is an automated email from the ASF dual-hosted git repository.

kezhenxu94 pushed a change to branch installdockercompose
in repository https://gitbox.apache.org/repos/asf/skywalking-infra-e2e.git


      at 0aa0b34  Install docker-compose if absent

This branch includes the following new commits:

     new 0aa0b34  Install docker-compose if absent

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(skywalking-infra-e2e) 01/01: Install docker-compose if absent

Posted by ke...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

kezhenxu94 pushed a commit to branch installdockercompose
in repository https://gitbox.apache.org/repos/asf/skywalking-infra-e2e.git

commit 0aa0b34a8443c89d693ae4eb02818eca6a917ac2
Author: kezhenxu94 <ke...@apache.org>
AuthorDate: Sun Aug 4 13:32:49 2024 +0800

    Install docker-compose if absent
---
 action.yaml | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/action.yaml b/action.yaml
index c627fd2..9fbb6ee 100644
--- a/action.yaml
+++ b/action.yaml
@@ -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; 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:
@@ -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"