fix: correct docker metadata tagging #10
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: Test Docker Image | |
| on: | |
| push: | |
| branches: | |
| - performance-stability-optimization | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Build the Docker image | |
| run: docker build . --file Dockerfile --tag univpn:test | |
| - name: Run container and perform tests | |
| run: | | |
| docker run -d --name univpn-test univpn:test | |
| sleep 20 # Wait for services to start | |
| echo "--- Service Status ---" | |
| docker exec univpn-test supervisorctl -c /etc/supervisor/supervisord.conf status | |
| echo "--- Resource Consumption ---" | |
| docker stats --no-stream univpn-test | |
| echo "--- Service Startup Times ---" | |
| docker exec univpn-test supervisorctl -c /etc/supervisor/supervisord.conf status | awk '{print $1, $4}' | |
| docker stop univpn-test |