Skip to content

Commit b7331ae

Browse files
authored
Merge pull request #339 from ConductionNL/rjzondervan-patch-1
Update dockerimage.yml
2 parents d61cb75 + 43c6968 commit b7331ae

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/dockerimage.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,15 @@ jobs:
4444
- name: Print definitive APP_ENV
4545
run: echo "APP_ENV is now $APP_ENV and APP_BUILD is now $APP_BUILD"
4646
- name: Build the Docker image
47-
run: docker-compose build --build-arg APP_ENV=$APP_ENV --build-arg APP_BUILD=$APP_BUILD --build-arg APP_BUILD_ALL_FIXTURES=true
47+
run: docker compose build --build-arg APP_ENV=$APP_ENV --build-arg APP_BUILD=$APP_BUILD --build-arg APP_BUILD_ALL_FIXTURES=true
4848
- name: Run the docker image
49-
run: docker-compose up -d
49+
run: docker compose up -d
5050
- name: Taking some sleep (for containers to come up)
5151
run: sleep 20
5252
- name: Check if all containers are running
5353
run: docker ps
5454
- name: Dumping the logs
55-
run: docker-compose logs
55+
run: docker compose logs
5656
- name: Show all images
5757
run: docker images
5858
- name: Login to Container Registry
@@ -66,13 +66,13 @@ jobs:
6666
fi
6767
- if: steps.containerregistry-login.outputs.success == 'true' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/development')
6868
name: Push to Container Registry
69-
run: docker-compose push
69+
run: docker compose push
7070

7171
- if: steps.containerregistry-login.outputs.success == 'true' && github.ref == 'refs/heads/main'
7272
name: Push versioned containers to Container Registry
7373
id: version-push
7474
run: |
75-
images=$(docker-compose images -q | xargs docker inspect --format='{{ index .RepoTags 0}}' | cut -d':' -f1 | grep $APP_NAME)
75+
images=$(docker compose images -q | xargs docker inspect --format='{{ index .RepoTags 0}}' | cut -d':' -f1 | grep $APP_NAME)
7676
for image in $images
7777
do
7878
docker push "${image}":"${APP_BUILD}"
@@ -96,4 +96,4 @@ jobs:
9696
prerelease: false
9797
- name: Chores
9898
if: (success() || failure())
99-
run: docker-compose down
99+
run: docker compose down

0 commit comments

Comments
 (0)