From 7da9c719837a50ad3e01fd81da21c402bf2a1689 Mon Sep 17 00:00:00 2001 From: Winni Neessen Date: Wed, 13 Mar 2024 23:41:01 +0100 Subject: [PATCH] Replace docker-compose with docker in GitHub Workflow The GitHub Workflow (docker.yml) has been refactored to replace docker-compose with docker. This involves changes in the installation instructions and the commands to build and test the Docker image. This simplifies the workflow and allows the use of standard Docker commands instead of docker-compose. --- .forgejo/workflows/docker.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/docker.yml b/.forgejo/workflows/docker.yml index 7f40c03..c2e0df8 100644 --- a/.forgejo/workflows/docker.yml +++ b/.forgejo/workflows/docker.yml @@ -15,17 +15,17 @@ jobs: runs-on: docker steps: - uses: actions/checkout@v3 - - name: Install docker-compose + - name: Install docker run: | - apt-get update; apt-get -y install docker-compose; which docker-compose + apt-get update; apt-get -y install docker; which docker - name: Build the Docker image - run: docker-compose build --no-cache --force-rm + run: docker build --no-cache --force-rm -t apg-go:main . test: runs-on: docker steps: - uses: actions/checkout@v2 - name: Test the Docker image - run: docker-compose up -d + run: docker run apg-go:main push_to_registry: name: Push Docker image to Docker Hub runs-on: docker