Skip to content
This repository has been archived by the owner on Sep 1, 2024. It is now read-only.

Merge pull request #132 from att/T101/cpu_metrics #71

Merge pull request #132 from att/T101/cpu_metrics

Merge pull request #132 from att/T101/cpu_metrics #71

Workflow file for this run

name: Build and Deploy to GitHub Pages
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build Docker image
run: docker build ./portal --file ./portal/Dockerfile --tag my-website-image
- name: Run Docker container
run: |
docker run --name my-website-container -d my-website-image
# Wait a few seconds to ensure the web server inside the container is fully up and running
sleep 10
- name: Copy static content from Docker container
run: |
mkdir -p static-content
docker cp my-website-container:/usr/share/nginx/html/qujata ./static-content
- name: Stop and remove Docker container
run: |
docker stop my-website-container
docker rm my-website-container
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./static-content/qujata