-
Notifications
You must be signed in to change notification settings - Fork 230
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Maintenance: fix GitHub actions (#425)
* Maintenance: fix GitHub actions
- Loading branch information
Showing
5 changed files
with
14 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
set -o errexit | ||
set -o pipefail | ||
|
||
docker-compose logs --timestamps --follow & | ||
docker compose logs --timestamps --follow & | ||
|
||
until (curl -I --silent --fail localhost:8080 | grep -iq "HTTP/1.1 200 OK"); do | ||
echo "wait for zammad to be ready..." | ||
|
@@ -21,7 +21,7 @@ echo | |
echo "Execute autowizard..." | ||
echo | ||
|
||
docker exec --env=AUTOWIZARD_RELATIVE_PATH=tmp/auto_wizard.json --env=DATABASE_URL=postgres://zammad:zammad@zammad-postgresql:5432/zammad_production zammad-docker-compose_zammad-railsserver_1 bundle exec rake zammad:setup:auto_wizard | ||
docker exec --env=AUTOWIZARD_RELATIVE_PATH=tmp/auto_wizard.json --env=DATABASE_URL=postgres://zammad:zammad@zammad-postgresql:5432/zammad_production zammad-docker-compose-zammad-railsserver-1 bundle exec rake zammad:setup:auto_wizard | ||
|
||
echo | ||
echo "Autowizard executed successful :)" | ||
|
@@ -32,7 +32,7 @@ echo | |
echo "Check DB for AutoWizard user" | ||
echo | ||
|
||
docker exec --env=DATABASE_URL=postgres://zammad:zammad@zammad-postgresql:5432/zammad_production zammad-docker-compose_zammad-railsserver_1 bundle exec rails r "p User.find_by(email: '[email protected]')" | grep '[email protected]' | ||
docker exec --env=DATABASE_URL=postgres://zammad:zammad@zammad-postgresql:5432/zammad_production zammad-docker-compose-zammad-railsserver-1 bundle exec rails r "p User.find_by(email: '[email protected]')" | grep '[email protected]' | ||
|
||
echo | ||
echo "Check DB for AutoWizard user successfull :)" | ||
|
@@ -42,7 +42,7 @@ echo | |
echo "Fill DB with some random data" | ||
echo | ||
|
||
docker exec --env=DATABASE_URL=postgres://zammad:zammad@zammad-postgresql:5432/zammad_production zammad-docker-compose_zammad-railsserver_1 bundle exec rails r "FillDb.load(agents: 1,customers: 1,groups: 1,organizations: 1,overviews: 1,tickets: 1)" | ||
docker exec --env=DATABASE_URL=postgres://zammad:zammad@zammad-postgresql:5432/zammad_production zammad-docker-compose-zammad-railsserver-1 bundle exec rails r "FillDb.load(agents: 1,customers: 1,groups: 1,organizations: 1,overviews: 1,tickets: 1)" | ||
|
||
echo | ||
echo "DB fill successful :)" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters