chore: bump docker/build-push-action from 7.1.0 to 7.2.0 #33
Workflow file for this run
This file contains hidden or 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: Build | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| branches: ["master"] | |
| jobs: | |
| check_build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository code | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Build Docker image | |
| run: docker build -t mock-saml2-idp:pr . | |
| - name: Check Docker build | |
| run: | | |
| # Start the container with environment variables | |
| docker run \ | |
| -p 8080:8080 \ | |
| -p 8443:8443 \ | |
| -e SP_ACS_LOCATION=https://example.com/saml/acs/ \ | |
| -e SP_ENTITY_ID=https://example.com \ | |
| -d mock-saml2-idp:pr | |
| # Wait for a few seconds to ensure the server is up and run some basic checks | |
| sleep 10 | |
| curl --fail http://localhost:8080/api/settings.php | |
| curl --fail http://localhost:8080/sso/saml2/idp/metadata.php |