Skip to content

Commit

Permalink
Update README to change Docker port from 8999 to 80 and add GitHub Ac…
Browse files Browse the repository at this point in the history
…tions workflow for Docker image build
  • Loading branch information
ndonathan committed Nov 2, 2024
1 parent 0de5641 commit b34ad12
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 2 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build Docker Image

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ${{ secrets.DOCKER_USERNAME }}/posh-rest:latest
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ This PowerShell script creates a RESTful API that allows remote clients to perfo
2. Run the Docker container:

```sh
docker run -d -p 8999:8999 posh-rest
docker run -d -p 80:80 posh-rest
```

The script will start listening for requests on port 8999.
The script will start listening for requests on port 80.

#### Without Docker

Expand Down

0 comments on commit b34ad12

Please sign in to comment.