changed output of mers forms #724
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: Pull Request Validation | |
| on: | |
| pull_request: | |
| branches: | |
| - "**" | |
| jobs: | |
| build-docker: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| with: | |
| path: builder | |
| - name: Configure AWS Credentials | |
| id: aws-creds | |
| uses: aws-actions/configure-aws-credentials@v6 | |
| with: | |
| aws-region: eu-west-2 | |
| aws-access-key-id: ${{secrets.ACCESS_KEY_ID}} | |
| aws-secret-access-key: ${{secrets.SECRET_ACCESS_KEY}} | |
| - name: Login to ECR | |
| uses: docker/login-action@v4 | |
| with: | |
| registry: ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.${{secrets.AWS_REGION}}.amazonaws.com | |
| ecr: true | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v4 | |
| - name: Modify config for build | |
| run: | | |
| cd ./builder/runner | |
| # Comment out specific Redis + sessionCookiePassword configuration lines | |
| sed -i 's/^ sessionCookiePassword:/ \/\/ sessionCookiePassword:/' config/default.js | |
| sed -i 's/^ redisHost:/ \/\/ redisHost:/' config/default.js | |
| sed -i 's/^ redisPort:/ \/\/ redisPort:/' config/default.js | |
| sed -i 's/^ redisPassword:/ \/\/ redisPassword:/' config/default.js | |
| sed -i 's/^ redisTls:/ \/\/ redisTls:/' config/default.js | |
| - name: Build and cache | |
| uses: docker/build-push-action@v7 | |
| with: | |
| push: false | |
| load: true | |
| tags: user/app:test | |
| context: ./builder | |
| file: ./builder/runner/Dockerfile | |
| platforms: linux/amd64 | |
| cache-from: type=gha | |
| cache-to: type=gha,mode=max | |
| - name: Check | |
| run: | | |
| echo "Starting container..." | |
| # Start container and immediately check if it's running | |
| docker run --rm -d --name quick-test -p 8080:8080 user/app:test | |
| # Wait a moment | |
| sleep 5 | |
| # Check if still running | |
| if docker ps | grep -q quick-test; then | |
| echo "✅ Container started successfully" | |
| docker logs quick-test | |
| docker stop quick-test | |
| else | |
| echo "❌ Container failed to start or exited" | |
| docker logs quick-test 2>&1 || echo "No logs available" | |
| exit 1 | |
| fi |