From 7ee5632405f1480fa4ce2c18e646c738cc21ac90 Mon Sep 17 00:00:00 2001 From: Winni Neessen Date: Wed, 13 Mar 2024 23:37:38 +0100 Subject: [PATCH] Refactor docker-compose installation in GitHub Workflow Docker-compose installation has been moved in the GitHub Workflow (docker.yml) from the "test" to the "build" phase. This change ensures docker-compose is installed early on, making it available throughout the entire process. The steps include updating the package list, installing docker-compose, and confirming its installation. --- .forgejo/workflows/docker.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/docker.yml b/.forgejo/workflows/docker.yml index 0c4d5cd..7f40c03 100644 --- a/.forgejo/workflows/docker.yml +++ b/.forgejo/workflows/docker.yml @@ -15,6 +15,9 @@ jobs: runs-on: docker steps: - uses: actions/checkout@v3 + - name: Install docker-compose + run: | + apt-get update; apt-get -y install docker-compose; which docker-compose - name: Build the Docker image run: docker-compose build --no-cache --force-rm test: @@ -29,9 +32,6 @@ jobs: steps: - name: Check out the repo uses: actions/checkout@v3 - - name: Install docker-compose - run: | - apt-get update; apt-get -y install docker-compose; which docker-compose - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - name: Log in to Docker Hub