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

View file

@ -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