Dockerfiles #13
Workflow file for this run
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
name: Test container structure | |
on: | |
pull_request: | |
branches: | |
- main | |
env: | |
REGISTRY: docker.io | |
IMAGE_NAME: appwrite/base | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-versions: ['8.0', '8.1', '8.2', '8.3'] # add PHP versions as required | |
steps: | |
- name: Checkout the repo | |
uses: actions/checkout@v3 | |
- name: Setup container structure test | |
run: | | |
curl -LO https://storage.googleapis.com/container-structure-test/latest/container-structure-test-linux-amd64 | |
chmod +x container-structure-test-linux-amd64 | |
sudo mv container-structure-test-linux-amd64 /usr/local/bin/container-structure-test | |
- name: Build & run container structure test | |
run: | | |
docker build -t utopia-base-test php-${{ matrix.php-versions }}/. | |
container-structure-test test --image utopia-base-test --config tests.yaml php-${{ matrix.php-versions }}/tests.yaml |