Skip to content

feat: add docker build-push actions for SRE scenario tools (#49) #1

feat: add docker build-push actions for SRE scenario tools (#49)

feat: add docker build-push actions for SRE scenario tools (#49) #1

name: Build and push SRE tool images
on:
push:
branches:
- main
paths:
- sre/tools/kubernetes-topology-mapper/*
- sre/tools/astronomy-shop-checkout-service/*
jobs:
topology-monitor:
runs-on: ubuntu-latest
steps:
- name: Login to Quay.io
uses: docker/login-action@v3
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_ROBOT_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push Kubernetes Topology Mapper
uses: docker/build-push-action@v6
with:
context: sre/tools/kubernetes-topology-mapper
platform:
- linux/amd64

Check failure on line 30 in .github/workflows/sre-build-push-images.yaml

View workflow run for this annotation

GitHub Actions / Build and push SRE tool images

Invalid workflow file

The workflow is not valid. .github/workflows/sre-build-push-images.yaml (Line: 30, Col: 13): A sequence was not expected .github/workflows/sre-build-push-images.yaml (Line: 34, Col: 13): A sequence was not expected
- linux/arm64
push: true
tags:
- it-bench/topology-monitor:0.0.1
- it-bench/topology-monitor:latest
unsupported-checkout-service:
runs-on: ubuntu-latest
steps:
- name: Login to Quay.io
uses: docker/login-action@v3
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_ROBOT_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push Unsupported Astronomy Shop Checkout Service image (amd)
uses: docker/build-push-action@v6
with:
context: sre/tools/astronomy-shop-checkout-service
platform:
- linux/amd64
push: true
tags:
- it-bench/unsupported-checkout-service-amd64:0.0.1
- it-bench/unsupported-checkout-service-amd64:latest
- name: Build and push Unsupported Astronomy Shop Checkout Service image (arm)
uses: docker/build-push-action@v6
with:
context: sre/tools/astronomy-shop-checkout-service
platform:
- linux/arm64
push: true
tags:
- it-bench/unsupported-checkout-service-arm64:0.0.1
- it-bench/unsupported-checkout-service-arm64:latest