Skip to content

Merge pull request #108 from appwrite/feat/igbinary-extension #147

Merge pull request #108 from appwrite/feat/igbinary-extension

Merge pull request #108 from appwrite/feat/igbinary-extension #147

# https://github.com/marketplace/actions/container-structure-test-action
name: Container Structure Test
on: push
permissions:
contents: read
env:
IMAGE_NAME: appwrite/base
REGISTRY: docker.io
jobs:
structure_test:
runs-on: ubuntu-24.04
steps:
- name: Checkout the repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Build an image from Dockerfile
run: |
docker image build --target final --tag ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }} .
- name: Build the XDebug variant
run: |
docker image build --target xdebug --tag ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}-xdebug .
- name: Run container structure tests
uses: plexsystems/container-structure-test-action@c0a028aa96e8e82ae35be556040340cbb3e280ca # v0.3.0
with:
image: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}
config: tests.yaml
- name: Run container structure tests for the XDebug variant
uses: plexsystems/container-structure-test-action@c0a028aa96e8e82ae35be556040340cbb3e280ca # v0.3.0
with:
image: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}-xdebug
config: tests-xdebug.yaml