Skip to content

Commit

Permalink
fix some issues in docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbarry committed Mar 31, 2024
1 parent 42ee736 commit 38b37bb
Showing 1 changed file with 21 additions and 7 deletions.
28 changes: 21 additions & 7 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,33 @@ jobs:

build:

runs-on: nginx-latest
#runs-on: nginx-latest
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
# ?? https://github.com/nektos/act/issues/724
#- run: sudo chown runner:docker /var/run/docker.sock
# if: ${{ env.ACT }}

- name: Checkout
uses: actions/checkout@v3

#- name: Use node.js
# uses: actions/setup-node@v2

- name: Setup docker buildx
uses: docker/setup-buildx-action@v1

- name: Build the Docker image for the HTTP server
run: |
docker build -t alexgames_http_server -f docker/http_server/Dockerfile --tag alexgames_http_server .
docker create --name alexgames_http_server_image alexgames_http_server
docker cp alexgames_http_server:/app/build/wasm/out/http_out/* ./public/
docker rm alexgames_http_server_image
docker build -t alexgames_http_server \
-f docker/http_server/Dockerfile \
--target=export_output \
--output=./docs \
.
- name: Publish HTML to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
publish_dir: ./docs

0 comments on commit 38b37bb

Please sign in to comment.