Skip to content

Commit

Permalink
modify help message
Browse files Browse the repository at this point in the history
Signed-off-by: a3hadi <[email protected]>
  • Loading branch information
ayildirim21 committed Mar 7, 2024
2 parents f737254 + cdfd1c6 commit cfc9d2a
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 1 deletion.
45 changes: 45 additions & 0 deletions .github/workflows/buid-push.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
on:
pull_request:
types:
- closed
paths:
- "pkg/*/examples/go.sum"
- "pkg/*/examples/go.mod"

jobs:
if_merged:
if: github.event.pull_request.merged == true
name: Build and Push Images
runs-on: ubuntu-latest

strategy:
matrix:
repository: [
"map-even-odd", "map-flatmap", "map-forward-message", "map-retry", "map-tickgen",
"map-flatmap-stream", "reduce-counter", "reduce-sum", "reduce-stream-counter",
"reduce-stream-sum", "session-counter", "sideinput-example", "udf-sideinput-example",
"sink-log", "source-simple-source", "mapt-assign-event-time", "mapt-event-time-filter"
]

steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Quay.io registry
env:
QUAY_USERNAME: ${{ secrets.QUAY_USERNAME }}
QUAY_PASSWORD: ${{ secrets.QUAY_PASSWORD }}
uses: docker/login-action@v3
with:
registry: quay.io
username: ${{ env.QUAY_USERNAME }}
password: ${{ env.QUAY_PASSWORD }}
- name: Build and tag images
run: ./update_examples --build
- name: Push images
env:
IMAGE_PREFIX: "quay.io/numaio/numaflow-go"
TAG: "stable"
run: |
docker push ${{ env.IMAGE_PREFIX }}/${{ matrix.repository }}:${{ env.TAG }}
2 changes: 1 addition & 1 deletion update_examples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ function show_help () {
echo "Usage: $0 [-h|--help] (-b|--build | -c|--commit-sha <commit_sha>)"
echo " -h, --help Display help message and exit"
echo " -b, --build Build the docker images of all the examples"
echo " -c, --commit-sha Update the numaflow-go version to the specified SHA"
echo " -c, --commit-sha Update all the examples to depend on the numaflow-go version with the specified SHA"
}

function traverse_examples () {
Expand Down

0 comments on commit cfc9d2a

Please sign in to comment.