Skip to content

Commit

Permalink
fix: docker-compose v1 deprecation (#117)
Browse files Browse the repository at this point in the history
* fix: docker-compose v1 deprecation

This feature has been removed from the ubuntu images, see https://github.blog/changelog/2024-04-10-github-hosted-runner-images-deprecation-notice-docker-compose-v1/

* Fix container names
  • Loading branch information
dantefromhell authored Aug 6, 2024
1 parent c62bb6e commit cb302c4
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,24 +115,24 @@ jobs:
- name: replace image
run: sed -i "s/docker.io\/mriedmann\/humhub:latest/ghcr.io\/${CI_REPOSITORY_OWNER}\/humhub:${CI_REF_NAME_SLUG}-${HUMHUB_VERSION}-git-${GIT_REV}-allinone/g" docker-compose.yml
- name: Spin up services
run: docker-compose -f docker-compose.yml up -d
run: docker compose -f docker-compose.yml up -d
- name: Wait
run: sleep 120
- name: Check status
run: docker ps -a
- name: Collect startup logs from all containers
run: docker-compose -f docker-compose.prod.yml logs
run: docker compose -f docker-compose.prod.yml logs
- name: Setup upterm SSH debugging
uses: mxschmitt/action-tmate@v3
if: ${{ github.event_name == 'workflow_dispatch' && inputs.ssh_debug_enabled }}
- name: Test
run: curl 'http://localhost:8080/' --location --fail --silent | grep 'Sign in</button>' -q || ( curl 'http://localhost:8080/' --trace - ; exit 1;)
- name: Test Email
run: docker-compose exec -T humhub php /var/www/localhost/htdocs/protected/yii test/email '[email protected]' --interactive=0 \
run: docker compose exec -T humhub php /var/www/localhost/htdocs/protected/yii test/email '[email protected]' --interactive=0 \
| grep 'Message successfully sent!' -q
- name: Collect HumHub server logs
if: ${{ always() }}
run: docker logs humhub-docker_humhub_1
run: docker logs humhub-docker-humhub-1

test_prod:
needs: build_variants
Expand Down Expand Up @@ -169,25 +169,25 @@ jobs:
sed -i "s/docker.io\/mriedmann\/humhub:stable-nginx/ghcr.io\/${CI_REPOSITORY_OWNER}\/humhub:${CI_REF_NAME_SLUG}-${HUMHUB_VERSION}-git-${GIT_REV}-nginx/g" docker-compose.prod.yml
sed -i "s/docker.io\/mriedmann\/humhub:stable-phponly/ghcr.io\/${CI_REPOSITORY_OWNER}\/humhub:${CI_REF_NAME_SLUG}-${HUMHUB_VERSION}-git-${GIT_REV}-phponly/g" docker-compose.prod.yml
- name: Spin up services
run: docker-compose -f docker-compose.prod.yml up -d
run: docker compose -f docker-compose.prod.yml up -d
- name: Wait
run: sleep 120
- name: Check status
run: docker ps -a
- name: Collect startup logs from all containers
run: docker-compose -f docker-compose.prod.yml logs
run: docker compose -f docker-compose.prod.yml logs
- name: Setup upterm SSH debugging
uses: mxschmitt/action-tmate@v3
if: ${{ github.event_name == 'workflow_dispatch' && inputs.ssh_debug_enabled }}
- name: Test
run: curl 'http://localhost:8080/' --location --fail --silent | grep 'Sign in</button>' -q || ( curl 'http://localhost:8080/' --trace - ; exit 1;)
- name: Test Email
run: |
docker-compose exec -T humhub php /var/www/localhost/htdocs/protected/yii test/email '[email protected]' --interactive=0 \
docker compose exec -T humhub php /var/www/localhost/htdocs/protected/yii test/email '[email protected]' --interactive=0 \
| grep 'Message successfully sent!' -q
- name: Collect HumHub server logs
if: ${{ always() }}
run: docker logs humhub-docker_humhub_1
run: docker logs humhub-docker-humhub-1

push_ghcr:
needs: ["test_aio", "test_prod"]
Expand Down

0 comments on commit cb302c4

Please sign in to comment.