@@ -44,15 +44,15 @@ jobs:
44
44
- name : Print definitive APP_ENV
45
45
run : echo "APP_ENV is now $APP_ENV and APP_BUILD is now $APP_BUILD"
46
46
- 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
48
48
- name : Run the docker image
49
- run : docker- compose up -d
49
+ run : docker compose up -d
50
50
- name : Taking some sleep (for containers to come up)
51
51
run : sleep 20
52
52
- name : Check if all containers are running
53
53
run : docker ps
54
54
- name : Dumping the logs
55
- run : docker- compose logs
55
+ run : docker compose logs
56
56
- name : Show all images
57
57
run : docker images
58
58
- name : Login to Container Registry
@@ -66,13 +66,13 @@ jobs:
66
66
fi
67
67
- if : steps.containerregistry-login.outputs.success == 'true' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/development')
68
68
name : Push to Container Registry
69
- run : docker- compose push
69
+ run : docker compose push
70
70
71
71
- if : steps.containerregistry-login.outputs.success == 'true' && github.ref == 'refs/heads/main'
72
72
name : Push versioned containers to Container Registry
73
73
id : version-push
74
74
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)
76
76
for image in $images
77
77
do
78
78
docker push "${image}":"${APP_BUILD}"
96
96
prerelease : false
97
97
- name : Chores
98
98
if : (success() || failure())
99
- run : docker- compose down
99
+ run : docker compose down
0 commit comments