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

Commit

Permalink
Merge branch 'main' of https://github.com/att/qujata into messageSize…
Browse files Browse the repository at this point in the history
…/US133166/add_message_size_parameter
  • Loading branch information
kaylarizi committed Jan 31, 2024
2 parents 3140204 + b1b57a2 commit 3ca7010
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
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

0 comments on commit 3ca7010

Please sign in to comment.