Skip to content

feat: implement update script and build/push workflow #10

feat: implement update script and build/push workflow

feat: implement update script and build/push workflow #10

Workflow file for this run

on:
pull_request
# pull_request:
# types:
# - closed
jobs:
if_merged:
if: github.event.pull_request.merged == false
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
uses: docker/login-action@v3
env:
REGISTRY_SERVER: "quay.io"
NUMAIO_USERNAME: ${{ secrets.NUMAIO_USERNAME }}
NUMAIO_PASSWORD: ${{ secrets.NUMAIO_PASSWORD }}
with:
registry: ${{ env.REGISTRY_SERVER }}
username: ${{ env.NUMAIO_USERNAME }}
password: ${{ env.NUMAIO_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 }}