Skip to content

feat(ui): render the real detail view in the Create SLO preview #3691

feat(ui): render the real detail view in the Create SLO preview

feat(ui): render the real detail view in the Create SLO preview #3691

Workflow file for this run

name: Container
on:
pull_request:
push:
branches:
- 'release-*'
- 'main'
- 'improve-slo-performance-with-subqueries'
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: true
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
GORELEASER_VERSION: v1.10.3
jobs:
build-binary:
name: Build binary using goreleaser
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- name: Checkout repository
uses: actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98
- name: Set up Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c
with:
go-version-file: go.mod
check-latest: true
cache: true
- name: Set up Node.js
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f
with:
node-version-file: .node-version
- name: Build binaries
uses: goreleaser/goreleaser-action@fdcf0b9df926c8dd93d4e7f15c508dd346e09eb1
with:
distribution: goreleaser
version: ${{ env.GORELEASER_VERSION }}
args: build --rm-dist --skip-validate --snapshot --debug
- name: Archive generated artifacts
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f
with:
name: pyrra-dist-binaries
if-no-files-found: error
path: |
dist
!dist/*.txt
build-and-push-container:
name: Container build and push
needs: build-binary
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
packages: write
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98
- name: Set up QEMU
uses: docker/setup-qemu-action@6412e4f97516bb3da89fd7bb5fe523a3b2956c06
with:
platforms: amd64.arm64,arm
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@e35beed76f4e80e9b1116ca47dfa5939a88dd8ff
- uses: actions/download-artifact@484a0b528fb4d7bd804637ccb632e47a0e638317
with:
name: pyrra-dist-binaries
path: dist
- name: Log in to the Container registry
uses: docker/login-action@de05a6d3a24346d4659bce540fac29c04a309bad
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@54262e8fce11c7b5496f28398368170da45de7e7
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Build and push Docker image
uses: docker/build-push-action@c5117b60bc829f00aaacb038e99de2712bee6e6e
with:
context: .
push: ${{ github.repository == 'pyrra-dev/pyrra' && github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64, linux/arm64, linux/arm/v7