Skip to content

Add storage for Prometheus using a PersistentVolumeClaim #1341

Add storage for Prometheus using a PersistentVolumeClaim

Add storage for Prometheus using a PersistentVolumeClaim #1341

Workflow file for this run

name: build
on:
push:
branches: [ '*' ]
pull_request:
branches: [ '*' ]
jobs:
build:
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Install Go
uses: actions/setup-go@master
with:
go-version: 1.22.x
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Get Repo Owner
id: get_repo_owner
run: echo "REPO_OWNER=$(echo ${{ github.repository_owner }} | tr '[:upper:]' '[:lower:]')" > $GITHUB_ENV
- name: Get git commit
id: get_git_commit
run: echo "GIT_COMMIT=$(git rev-parse HEAD)" >> $GITHUB_ENV
- name: Build x86_64 container into library
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
outputs: "type=docker,push=false"
platforms: linux/amd64
build-args: |
GIT_COMMIT=dev-${{env.GIT_COMMIT}}
VERSION=dev-${{env.GIT_COMMIT}}
tags: |
ghcr.io/${{ env.REPO_OWNER }}/faas-netes:${{ github.sha }}
- name: Build multi-arch containers for validation only
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
outputs: "type=image,push=false"
platforms: linux/amd64,linux/arm/v7,linux/arm64
build-args: |
GIT_COMMIT=dev-${{env.GIT_COMMIT}}
VERSION=dev-${{env.GIT_COMMIT}}
tags: |
ghcr.io/${{ env.REPO_OWNER }}/faas-netes:${{ github.sha }}
# Todo - load the image into Kind before running tests
# otherwise, this just tests the chart with images that
# have already been built and pushed in an earlier job
- name: get tools
run: ./contrib/get_tools.sh
- name: lint chart
run: ./contrib/lint_chart.sh
- name: create cluster
run: ./contrib/create_cluster.sh
- name: deploy function
run: OPERATOR=0 ./contrib/deploy.sh
- name: run function
run: OPERATOR=0 ./contrib/run_function.sh
- name: stop dev cluster
run: ./contrib/stop_dev.sh