Skip to content

Commit

Permalink
Add serverless-hello-world package
Browse files Browse the repository at this point in the history
  • Loading branch information
xprnio committed Jan 11, 2024
1 parent 8922631 commit 310a9d4
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/build-hello-world.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: build-functions

on:
push:
branches:
- main

jobs:
hello-world:
runs-on: ubuntu-latest
steps:
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to ghcr.io
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GHCR_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v5
with:
push: true
file: ./functions/hello-world/Dockerfile
context: ./functions/hello-world
tags: ghcr.io/${{ github.repository_owner }}/serverless-hello-world:latest
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ curl http://localhost:9999/v1/routes
### Creating functions
```sh
curl http://localhost:9999/v1/functions -sd '{
"image": "ghcr.io/xprnio/go-serverless/hello-world:latest"
"image": "ghcr.io/xprnio/serverless-hello-world:latest"
}'
```

Expand Down

0 comments on commit 310a9d4

Please sign in to comment.