-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): add a cron job every night at 2 to publish the nightly (#78)
- Loading branch information
1 parent
c5ec691
commit f1d93e8
Showing
6 changed files
with
149 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- | ||
name: E2E | ||
|
||
on: | ||
schedule: | ||
- cron: "2 0 * * *" | ||
workflow_dispatch: | ||
workflow_call: | ||
|
||
jobs: | ||
build_and_publish: | ||
name: Build and publish docker | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
with: | ||
platforms: ${{ env.TARGET_PLATFORM }} | ||
use: true | ||
|
||
- name: Login to Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: Build and push ${{ inputs.ps_version }} ${{ inputs.os_flavour }} | ||
run: ./build.sh | ||
env: | ||
TARGET_PLATFORM: "linux/amd64,linux/arm64" | ||
PS_VERSION: "nightly" | ||
PUSH: "true" |
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
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Example: nightly example | ||
|
||
This example runs the latest nightly image of PrestaShop Flashlight, which is based on the latest nightly of PrestaShop. There might be bugs in a nightly, be cautious when using this image in your CI/CD toolchain. | ||
|
||
## Test this example | ||
|
||
The expected output of this example is: | ||
|
||
```sh | ||
docker compose up prestashop --force-recreate | ||
``` | ||
|
||
You can access to PrestaShop in your browser: | ||
|
||
- http://localhost:8000 | ||
- http://localhost:8000/admin-dev/ (back office, login/password described [here](../../README.md)) | ||
|
||
## Running phpMyAdmin | ||
|
||
If you want to start a phpMyAdmin instance, it can be done easily like so: | ||
|
||
```sh | ||
docker compose up | ||
# or "docker compose up prestashop php-my-admin" | ||
``` | ||
|
||
You can now access phpMyAdmin at http://localhost:6060 |
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 |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: flashlight-basic-example | ||
services: | ||
prestashop: | ||
image: prestashop/prestashop-flashlight:nightly | ||
depends_on: | ||
mysql: | ||
condition: service_healthy | ||
environment: | ||
- PS_DOMAIN=localhost:8000 | ||
# - DEBUG_MODE=true | ||
ports: | ||
- 8000:80 | ||
|
||
mysql: | ||
image: mariadb:lts | ||
healthcheck: | ||
test: | ||
[ | ||
"CMD", | ||
"mysqladmin", | ||
"ping", | ||
"--host=localhost", | ||
"--user=root", | ||
"--password=prestashop", | ||
] | ||
interval: 10s | ||
timeout: 10s | ||
retries: 5 | ||
environment: | ||
- MYSQL_HOST=mysql | ||
- MYSQL_USER=prestashop | ||
- MYSQL_PASSWORD=prestashop | ||
- MYSQL_ROOT_PASSWORD=prestashop | ||
- MYSQL_PORT=3306 | ||
- MYSQL_DATABASE=prestashop | ||
|
||
phpmyadmin: | ||
image: phpmyadmin:latest | ||
depends_on: | ||
mysql: | ||
condition: service_healthy | ||
healthcheck: | ||
test: ["CMD", "curl", "-Isf", "http://localhost/robots.txt"] | ||
interval: 30s | ||
timeout: 10s | ||
retries: 5 | ||
environment: | ||
- PMA_HOST=mysql | ||
- PMA_PORT=3306 | ||
- PMA_USER=prestashop | ||
- PMA_PASSWORD=prestashop | ||
- MYSQL_ROOT_PASSWORD=prestashop | ||
ports: | ||
- 6060:80 |