Skip to content

fix: proper construction of SA groups for tier lookup (#136) #164

fix: proper construction of SA groups for tier lookup (#136)

fix: proper construction of SA groups for tier lookup (#136) #164

Workflow file for this run

name: MaaS API
on:
push:
branches:
- main
pull_request:
paths:
- 'maas-api/**'
permissions:
actions: read
contents: read
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: maas-api
steps:
- uses: actions/checkout@v5
- uses: actions/setup-go@v5
with:
go-version-file: maas-api/go.mod
cache: true
cache-dependency-path: maas-api/go.sum
- name: Check code formatting
run: make fmt-check
- name: Run tests
run: make test
- name: Upload coverage reports
uses: actions/upload-artifact@v4
if: always()
with:
name: coverage-reports
path: |
maas-api/coverage.out
maas-api/coverage.html
retention-days: 30
- name: Build image
run: make build-image
- name: Login to Quay.io
if: github.event_name == 'push'
uses: docker/login-action@v3
with:
registry: quay.io
username: ${{ secrets.APP_QUAY_USERNAME }}
password: ${{ secrets.APP_QUAY_TOKEN }}
- name: Push image to Quay.io
if: github.event_name == 'push'
run: |
make build-push-image
make build-push-image -e TAG=${{ github.sha }}