Skip to content

Commit

Permalink
Fix GitHub action to install docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
glegoux committed Nov 14, 2024
1 parent a7538f3 commit 4d688c4
Showing 1 changed file with 39 additions and 16 deletions.
55 changes: 39 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,21 @@ jobs:
strategy:
matrix:
os: [ubuntu] # centos

steps:
- name: Check out the repository
uses: actions/checkout@v3

steps:
steps:
- name: Check out the repository
uses: actions/checkout@v3
- name: Set up Docker
uses: docker/setup-buildx-action@v2

- name: Set up Docker
uses: docker/setup-buildx-action@v2

- name: Install Docker Compose
run: |
DOCKER_COMPOSE_VERSION="2.11.2"
sudo curl -L "https://github.com/docker/compose/releases/download/v$DOCKER_COMPOSE_VERSION/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version
<<<<<<< HEAD
- name: Install Docker Compose
run: |
DOCKER_COMPOSE_VERSION="2.11.2"
sudo curl -L "https://github.com/docker/compose/releases/download/v$DOCKER_COMPOSE_VERSION/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version
- name: Install project
run: |
Expand All @@ -46,7 +46,30 @@ jobs:
ls -lR && \
./script/inspect.sh && \
./.ci/check-version.sh


=======
- name: Install Docker Compose
run: |
DOCKER_COMPOSE_VERSION="2.11.2"
sudo curl -L "https://github.com/docker/compose/releases/download/v$DOCKER_COMPOSE_VERSION/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version
- name: Install project
run: |
./.ci/install.sh && \
make gen-conf OS_CONTAINER=${{ matrix.os }} && \
make install OS_CONTAINER=${{ matrix.os }}
- name: Check version
run: .ci/check-version.sh

- name: Test
run: make test

- name: Finish
run: |
cat /tmp/krb5-test-${{ matrix.os }}.log && \
ls -lR && \
./script/inspect.sh && \
./.ci/check-version.sh
>>>>>>> 0304859 (Fix GitHub action to install docker-compose)

0 comments on commit 4d688c4

Please sign in to comment.