mirror of
https://github.com/wneessen/apg-go.git
synced 2024-11-25 07:10:50 +01:00
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:
parent
7ee5632405
commit
7da9c71983
1 changed files with 4 additions and 4 deletions
|
@ -15,17 +15,17 @@ jobs:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Install docker-compose
|
- name: Install docker
|
||||||
run: |
|
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
|
- 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:
|
test:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Test the Docker image
|
- name: Test the Docker image
|
||||||
run: docker-compose up -d
|
run: docker run apg-go:main
|
||||||
push_to_registry:
|
push_to_registry:
|
||||||
name: Push Docker image to Docker Hub
|
name: Push Docker image to Docker Hub
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
|
|
Loading…
Reference in a new issue