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.
This commit is contained in:
Winni Neessen 2024-03-13 23:37:38 +01:00
parent a9b0f3b32b
commit 7ee5632405
Signed by: wneessen
GPG key ID: 5F3AF39B820C119D

View file

@ -15,6 +15,9 @@ jobs:
runs-on: docker runs-on: docker
steps: steps:
- uses: actions/checkout@v3 - 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 - name: Build the Docker image
run: docker-compose build --no-cache --force-rm run: docker-compose build --no-cache --force-rm
test: test:
@ -29,9 +32,6 @@ jobs:
steps: steps:
- name: Check out the repo - name: Check out the repo
uses: actions/checkout@v3 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 - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2 uses: docker/setup-buildx-action@v2
- name: Log in to Docker Hub - name: Log in to Docker Hub