File tree Expand file tree Collapse file tree 4 files changed +16
-16
lines changed
Expand file tree Collapse file tree 4 files changed +16
-16
lines changed Original file line number Diff line number Diff line change 2020 php-versions : ['8.2']
2121 node-version : [16.19.0]
2222 steps :
23- - uses : actions/checkout@v2
23+ - uses : actions/checkout@v4
2424
2525 - name : Log in to the Container registry
2626 uses : docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
@@ -34,27 +34,27 @@ jobs:
3434 uses : ASzc/change-string-case-action@v2
3535 with :
3636 string : ${{ github.repository }}
37-
37+
3838 - name : Display repository name
3939 run : echo ${{ steps.case.outputs.lowercase }}
4040
4141 - name : Find-and-replace strings
4242 id : slash
4343 uses : mad9000/actions-find-and-replace-string@2
4444 with :
45- source : ${{ github.ref_name }}
46- find : ' /'
47- replace : ' -'
45+ source : ${{ github.ref_name }}
46+ find : ' /'
47+ replace : ' -'
4848
4949 - name : Display issue name
50- run : echo ${{ steps.slash.outputs.value }}
50+ run : echo ${{ steps.slash.outputs.value }}
5151
5252 - name : Build Image
5353 run : |
5454 cp .env.example .env
5555 docker compose -f docker-compose.nginx.yml build
5656 docker compose -f docker-compose.nginx.yml run composer composer install --no-dev --no-interaction --no-progress --optimize-autoloader
57- docker compose -f docker-compose.nginx.yml run yarn bash -c 'cd /app && yarn install && yarn build'
57+ docker compose -f docker-compose.nginx.yml run yarn bash -c 'cd /app && yarn install && yarn build'
5858 docker build . -t udoit:latest -f build/nginx/Dockerfile.build
5959 docker tag udoit:latest ${{ env.REGISTRY }}/${{ steps.case.outputs.lowercase }}:${{ steps.slash.outputs.value }}
6060
Original file line number Diff line number Diff line change 3535 run : echo "::set-output name=dir::$(composer config cache-files-dir)"
3636
3737 - name : Cache composer dependencies
38- uses : actions/cache@v2
38+ uses : actions/cache@v4
3939 with :
4040 path : ${{ steps.composer-cache.outputs.dir }}
4141 key : php-${{ matrix.php-versions }}-composer-${{ hashFiles('**/composer.lock') }}
5454 id : yarn-cache-dir-path
5555 run : echo "::set-output name=dir::$(yarn config get cacheFolder)"
5656
57- - uses : actions/cache@v2
57+ - uses : actions/cache@v4
5858 id : yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
5959 with :
6060 path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
@@ -76,10 +76,10 @@ jobs:
7676 DATABASE_URL :
postgresql://udoit:[email protected] :5432/udoit?serverVersion=11&charset=utf8 7777 run : |
7878 sudo systemctl start postgresql.service
79- sudo -u postgres psql -c "CREATE DATABASE udoit;"
80- sudo -u postgres psql -c "CREATE USER udoit WITH PASSWORD 'udoit';"
81- sudo -u postgres psql -c "ALTER USER udoit WITH SUPERUSER;"
82- sudo -u postgres psql -c "GRANT ALL PRIVILEGES ON DATABASE "udoit" TO udoit;"
79+ sudo -u postgres psql -c "CREATE DATABASE udoit;"
80+ sudo -u postgres psql -c "CREATE USER udoit WITH PASSWORD 'udoit';"
81+ sudo -u postgres psql -c "ALTER USER udoit WITH SUPERUSER;"
82+ sudo -u postgres psql -c "GRANT ALL PRIVILEGES ON DATABASE "udoit" TO udoit;"
8383 php bin/console doctrine:migrations:migrate
8484
8585 - name : Create and populate MySQL database
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ RUN apt-get update -y \
44 && apt-get install -y nginx libpng-dev zlib1g-dev git unzip
55
66# PHP_CPPFLAGS are used by the docker-php-ext-* scripts
7- ENV PHP_CPPFLAGS="$PHP_CPPFLAGS -std=c++11 "
7+ ENV PHP_CPPFLAGS="$PHP_CPPFLAGS -std=c++17 "
88
99RUN docker-php-ext-install pdo_mysql gd pdo \
1010 && docker-php-ext-install opcache \
Original file line number Diff line number Diff line change 1- FROM composer
1+ FROM composer:2.6.4
22
33RUN apk add gd-dev libpng-dev
44RUN docker-php-ext-install gd
5- WORKDIR /app
5+ WORKDIR /app
You can’t perform that action at this time.
0 commit comments