Skip to content

Commit

Permalink
Merge pull request #1126 from proditis/ci-update
Browse files Browse the repository at this point in the history
attempt to suppress buildkit for now
  • Loading branch information
proditis authored Mar 19, 2024
2 parents 4236028 + 40c13cd commit 48bd016
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 6 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/ci-pull_requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ on:
jobs:
phpcomposer:
runs-on: ubuntu-20.04
env:
DOCKER_BUILDKIT: 0
BUILDKIT_PROGRESS: plain

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -41,3 +44,14 @@ jobs:
run: |
cd backend
php7.4 /usr/bin/composer update --no-dev --prefer-dist --no-progress
- name: Build the all-in-one Docker image
run: docker build --no-cache . --file contrib/Dockerfile --tag echothrust/echoctf.red-all-in-one:latest
- name: Build the DB Docker image
run: docker build --no-cache . --file contrib/Dockerfile-mariadb --tag echothrust/echoctf.red-db:latest
- name: Build the frontend Docker image
run: docker build --no-cache . --file contrib/Dockerfile-frontend --tag echothrust/echoctf.red-frontend:latest
- name: Build the backend Docker image
run: docker build --no-cache . --file contrib/Dockerfile-backend --tag echothrust/echoctf.red-backend:latest
- name: Build the vpn Docker image
run: docker build --no-cache . --file contrib/Dockerfile-vpn --tag echothrust/echoctf.red-vpn:latest
12 changes: 7 additions & 5 deletions .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ jobs:
runs-on: ubuntu-20.04
env:
GITHUB_OAUTH_TOKEN: ${{ secrets.GITHUBOAUTHTOKEN }}
DOCKER_BUILDKIT: 0
BUILDKIT_PROGRESS: plain
steps:
- name: Setup PHP with PECL extension
uses: shivammathur/setup-php@v2
Expand Down Expand Up @@ -83,15 +85,15 @@ jobs:
php7.4 /usr/bin/composer update --no-dev --prefer-dist --no-progress
- name: Build the all-in-one Docker image
run: docker build --squash . --file contrib/Dockerfile --tag echothrust/echoctf.red-all-in-one:latest
run: docker build --no-cache --squash . --file contrib/Dockerfile --tag echothrust/echoctf.red-all-in-one:latest
- name: Build the DB Docker image
run: docker build --squash . --file contrib/Dockerfile-mariadb --tag echothrust/echoctf.red-db:latest
run: docker build --no-cache --squash . --file contrib/Dockerfile-mariadb --tag echothrust/echoctf.red-db:latest
- name: Build the frontend Docker image
run: docker build --squash . --file contrib/Dockerfile-frontend --tag echothrust/echoctf.red-frontend:latest
run: docker build --no-cache --squash . --file contrib/Dockerfile-frontend --tag echothrust/echoctf.red-frontend:latest
- name: Build the backend Docker image
run: docker build --squash . --file contrib/Dockerfile-backend --tag echothrust/echoctf.red-backend:latest
run: docker build --no-cache --squash . --file contrib/Dockerfile-backend --tag echothrust/echoctf.red-backend:latest
- name: Build the vpn Docker image
run: docker build --squash . --file contrib/Dockerfile-vpn --tag echothrust/echoctf.red-vpn:latest
run: docker build --no-cache --squash . --file contrib/Dockerfile-vpn --tag echothrust/echoctf.red-vpn:latest

- name: Login to DockerHub
run: docker login -u ${{ secrets.DOCKER_USERNAME }} -p${{ secrets.DOCKER_PASSWORD }}
Expand Down
2 changes: 1 addition & 1 deletion contrib/Dockerfile-frontend
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ RUN set -ex \
&& chmod a+x /usr/local/bin/composer \
&& sed -ie "s/127.0.0.1/${MYSQL_HOST}/g" ${RED_APP}/config/cache.php \
&& echo "<?php return [ 'class' => 'yii\db\Connection', 'dsn' => 'mysql:host=${MYSQL_HOST};dbname=${MYSQL_DATABASE}', 'username' => '${MYSQL_USER}', 'password' => '${MYSQL_PASSWORD}', 'charset' => 'utf8mb4', ];">${RED_APP}/config/db.php \
&& mkdir -p ${RED_APP}/web/assets ${RED_APP}/runtime ${RED_APP}/web/images/avatars/team \
&& mkdir -p ${RED_APP}/web/assets ${RED_APP}/runtime ${RED_APP}/web/images/avatars/team ${RED_APP}/web/uploads\
&& chown -R www-data ${RED_APP}/web/assets ${RED_APP}/web/images/avatars \
&& chown www-data ${RED_APP}/runtime ${RED_APP}/web/uploads \
&& chmod a+rwx ${RED_APP}/web/uploads \
Expand Down

0 comments on commit 48bd016

Please sign in to comment.