Skip to content

Commit

Permalink
update checkout build action to v4 and use docker compose instead of …
Browse files Browse the repository at this point in the history
…docker-compose
  • Loading branch information
Niggggggo committed Oct 11, 2024
1 parent 58f7dfa commit fcb4dc0
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/docker-hub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,23 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Build the Docker image
run: docker-compose build --no-cache --force-rm
run: docker compose build --no-cache --force-rm

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Test the Docker image
run: docker-compose up -d
run: docker compose up -d

push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
Expand Down

0 comments on commit fcb4dc0

Please sign in to comment.